diff options
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r-- | alacritty_terminal/src/grid/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alacritty_terminal/src/grid/mod.rs b/alacritty_terminal/src/grid/mod.rs index d5932639..5178ed99 100644 --- a/alacritty_terminal/src/grid/mod.rs +++ b/alacritty_terminal/src/grid/mod.rs @@ -238,13 +238,11 @@ impl<T: GridCell + Default + PartialEq + Copy> Grid<T> { // changing the start index. // // To accommodate scroll regions, rows are reordered at the end. - if region.start == Line(0) { + if region.start == Line(0) && self.max_scroll_limit == 0 { // Rotate the entire line buffer. If there's a scrolling region // active, the bottom lines are restored in the next step. self.raw.rotate_up(*positions); - self.decrease_scroll_limit(*positions); - // Now, restore any scroll region lines. let lines = self.lines; for i in IndexRange(region.end..lines) { |