vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: 7bc8c18da4aae7937d54a4a6735b2c4c80c5ace6
Parent: ddac5dfbaa26b8b480979dc2e43e939b22a17002
Author: Randy Palamar
Date:   Mon,  2 Sep 2024 17:15:51 -0600

break line after cursor movement

This fixes one bug where a line would be duplicated if it was at
the bottom of the screen, caused a screen scroll via an escape
sequence, and then got repeated because it wasn't technically
ended yet.

See vttest Test 9-1

Diffstat:
Mterminal.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/terminal.c b/terminal.c @@ -1055,7 +1055,7 @@ split_raw_input_to_lines(Term *t, s8 raw) case EMC_CURSOR_MOVED: if (line_length(tv->lines.buf + tv->lines.widx)) { parsed_lines++; - feed_line(&tv->lines, old.data, t->cursor.style); + feed_line(&tv->lines, raw.data, t->cursor.style); } break; case EMC_SWAPPED_SCREEN: