line_as_ansi: don't reset SGR at start of line

less does not carry the mode over from the previous line anyway, let's
save a few bytes for every line
This commit is contained in:
Dominique Martinet
2018-09-16 04:34:41 +09:00
parent 3d862da2be
commit c421d3bb59
3 changed files with 6 additions and 7 deletions

View File

@@ -441,4 +441,4 @@ class TestScreen(BaseTest):
return ''.join(d)
self.ae(as_text(), 'ababababab\nc\n\n')
self.ae(as_text(True), '\x1b[0mababa\x1b[0mbabab\n\x1b[0mc\n\n')
self.ae(as_text(True), 'ababababab\nc\n\n')