We do indeed need to see "\x03" even when there's no foreground/background

(color reset)
This commit is contained in:
jesopo 2018-11-14 22:50:04 +00:00
parent 2fc948ab24
commit 1297901dca

View file

@ -170,8 +170,7 @@ 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 = ""
background = "" background = ""