Commit: a74c379ec85e3ed6377e02c96adf8cafb763fed3 Parent: 020d94b9e996ad423477d4e7d520cd13cef21020 Author: Randy Palamar Date: Wed, 4 Sep 2024 21:21:55 -0600 fix scrollback missing the top line Diffstat:
M | terminal.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/terminal.c b/terminal.c @@ -646,7 +646,7 @@ static void push_newline(Term *t, b32 move_to_first_col) { i32 row = t->cursor.pos.y; - if (row == t->bot) + if (row == t->bot && t->scroll_offset == 0) fb_scroll_up(t, t->top, 1); else row++;