From f911e48a95bf15dfaac78709a220de5d99bbf8c3 Mon Sep 17 00:00:00 2001 From: Till Bungert Date: Fri, 6 Sep 2024 18:21:03 +0200 Subject: [PATCH] fix: only change stable row offset if screen has scrollback --- term/src/screen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term/src/screen.rs b/term/src/screen.rs index 4ca3ff8a1..0d3c09de0 100644 --- a/term/src/screen.rs +++ b/term/src/screen.rs @@ -724,7 +724,7 @@ impl Screen { self.lines.remove(remove_idx); } - if remove_idx == 0 { + if remove_idx == 0 && self.allow_scrollback { self.stable_row_index_offset += lines_removed; }