mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Fix incorrect display offset after rotation
Regression was introduced in 4cc6421daa
,
however it was working before only due to grid.len() bug.
This commit is contained in:
parent
bfd69d0178
commit
7ecf93ec70
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ impl<T: GridCell + PartialEq + Copy> Grid<T> {
|
|||
if region.start == Line(0) {
|
||||
// Update display offset when not pinned to active area
|
||||
if self.display_offset != 0 {
|
||||
self.display_offset = min(self.display_offset + *positions, self.len() - num_lines);
|
||||
self.display_offset = min(self.display_offset + *positions, self.max_scroll_limit);
|
||||
}
|
||||
|
||||
self.increase_scroll_limit(*positions, template);
|
||||
|
|
Loading…
Reference in a new issue