Skip to content

Commit

Permalink
fix: only change stable row offset if screen has scrollback
Browse files Browse the repository at this point in the history
  • Loading branch information
tbung authored and wez committed Sep 14, 2024
1 parent bcf77a7 commit f911e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion term/src/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f911e48

Please sign in to comment.