mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 20:44:32 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user