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

@@ -235,7 +235,6 @@ line_as_ansi(Line *self, Py_UCS4 *buf, index_type buflen) {
if (limit == 0) return 0;
char_type previous_width = 0;
WRITE_SGR("0");
Cursor c1 = {{0}}, c2 = {{0}};
Cursor *cursor = &c1, *prev_cursor = &c2;
char_type prev_attrs = 0;