fix: only change stable row offset if screen has scrollback

This commit is contained in:
Till Bungert authored and Wez Furlong committed 2024-09-14 06:37:36 -07:00
1 parent bcf77a711c
commit f911e48a95
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}