]> jfr.im git - irc/weechat/qweechat.git/commitdiff
Replace "," by "~" in foreground/background color separation
authorSébastien Helleu <redacted>
Sun, 14 Nov 2021 09:24:05 +0000 (10:24 +0100)
committerSébastien Helleu <redacted>
Sun, 14 Nov 2021 09:24:05 +0000 (10:24 +0100)
This is to follow the change made in WeeChat 2.6 (weechat/weechat#1264).

qweechat/weechat/color.py

index 23a438a4359146c9776b4e56c87b791a1ad8bd4a..20a72eca8d88ad2cb54d0395ff91b36d4dafcc78 100644 (file)
@@ -31,7 +31,7 @@ RE_COLOR_EXT = r'(?:@%s\d{5})' % RE_COLOR_ATTRS
 RE_COLOR_ANY = r'(?:%s|%s)' % (RE_COLOR_STD, RE_COLOR_EXT)
 # \x19: color code, \x1A: set attribute, \x1B: remove attribute, \x1C: reset
 RE_COLOR = re.compile(
-    r'(\x19(?:\d{2}|F%s|B\d{2}|B@\d{5}|E|\\*%s(,%s)?|@\d{5}|b.|\x1C))|\x1A.|'
+    r'(\x19(?:\d{2}|F%s|B\d{2}|B@\d{5}|E|\\*%s(~%s)?|@\d{5}|b.|\x1C))|\x1A.|'
     r'\x1B.|\x1C'
     % (RE_COLOR_ANY, RE_COLOR_ANY, RE_COLOR_ANY))