We do indeed need to see "\x03" even when there's no foreground/background
(color reset)
This commit is contained in:
parent
2fc948ab24
commit
1297901dca
1 changed files with 1 additions and 2 deletions
|
@ -170,7 +170,6 @@ def _color_tokens(s: str) -> typing.List[str]:
|
||||||
if len(background) > 1:
|
if len(background) > 1:
|
||||||
color += background
|
color += background
|
||||||
|
|
||||||
if color:
|
|
||||||
matches.append("\x03%s" % color)
|
matches.append("\x03%s" % color)
|
||||||
is_color = False
|
is_color = False
|
||||||
foreground = ""
|
foreground = ""
|
||||||
|
|
Loading…
Reference in a new issue