mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 10:01:33 +00:00
Ensure scroll position is correct after resize
This commit is contained in:
parent
e2edacb629
commit
cf5ea96126
1 changed files with 3 additions and 0 deletions
|
|
@ -181,6 +181,9 @@ func (self *Handler) on_resize(old_size, new_size loop.ScreenSize) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if self.max_scroll_pos.Less(self.scroll_pos) {
|
||||
self.scroll_pos = self.max_scroll_pos
|
||||
}
|
||||
}
|
||||
self.draw_screen()
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue