fix: crash in View when panel is maximized
This commit is contained in:
parent
ec8379ce51
commit
05cba52397
1 changed files with 2 additions and 2 deletions
|
|
@ -109,8 +109,8 @@ fn clamp_row(self: *Self, cursor: *const Cursor, abs: bool, bottom_offset: usize
|
|||
}
|
||||
if (cursor.row < self.row) {
|
||||
self.row = 0;
|
||||
} else if (cursor.row > self.row + self.rows - bottom_min_border_distance) {
|
||||
self.row = cursor.row + bottom_min_border_distance - self.rows;
|
||||
} else if (cursor.row > self.row + self.rows -| bottom_min_border_distance) {
|
||||
self.row = cursor.row + bottom_min_border_distance -| self.rows;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue