Don't let the cursor go behind the bottom scrollbar.

This commit is contained in:
Andrew Hamilton 2022-01-02 23:01:44 +10:00
parent d6705d55bc
commit 732d68b16a

View file

@ -459,7 +459,7 @@ class Editor:
def follow_cursor(self):
height = self.last_height
height -= 1 # header
height -= 2 # header + scrollbar
width = self.last_width
width -= 1 # scrollbar
view_x, view_y = self.view_widget.position