From 732d68b16a16a79d435011ed8201e13950b8b6fa Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Sun, 2 Jan 2022 23:01:44 +1000 Subject: [PATCH] Don't let the cursor go behind the bottom scrollbar. --- diff_edit/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff_edit/editor.py b/diff_edit/editor.py index 4eada59..2bbb23a 100755 --- a/diff_edit/editor.py +++ b/diff_edit/editor.py @@ -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