Nope, just combine previous color-char and current color-char and see if it's

less than or equal to 15 (utils.irc)
This commit is contained in:
jesopo 2018-11-26 17:34:27 +00:00
parent 9a614846b0
commit fba1dd2271

View file

@ -161,7 +161,7 @@ def _color_tokens(s: str) -> typing.List[str]:
if can_add:
current_color = background if is_background else foreground
if current_color:
can_add = int(char) < 6 or int(current_color) < 2
can_add = int(current_color + char) <= 15
if can_add:
if is_background: