From 547983819da9345bdb690be7c0a7a98cea64ab43 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Sat, 8 Jul 2017 13:13:22 +0100 Subject: [PATCH] Fixed a bug in scrolling. --- BUGS | 4 ++-- vigil/__main__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BUGS b/BUGS index b5200c9..5e09a75 100644 --- a/BUGS +++ b/BUGS @@ -8,8 +8,6 @@ Current the timed out status when un-paused. - Tmp files are being left behind after shutdown. - All tools in AppImages aren't working correctly. See ./vigil --self_test -- When the cursor is at the top of the summary, and it is moved up, there - is a glitch in the scrolling. Current (tool related) @@ -248,6 +246,8 @@ Fixed - gcc is not working inside the sandbox. <- Let /dev/null through the sandbox. - There is no color in lxterminal, only shades of grey. +- When the cursor is at the top of the summary, and it is moved up, there + is a glitch in the scrolling. Won't fix diff --git a/vigil/__main__.py b/vigil/__main__.py index 9a3f0d0..a1c32eb 100755 --- a/vigil/__main__.py +++ b/vigil/__main__.py @@ -316,7 +316,7 @@ class Summary: scroll_x, scroll_y = new_scroll_x, new_scroll_y = \ self._view_widget.position if cursor_y < scroll_y: - new_scroll_y = max(cursor_y - summary_height, 0) + new_scroll_y = max(cursor_y - summary_height + 1, 0) if (scroll_y + summary_height - 1) < cursor_y: new_scroll_y = cursor_y self._view_widget.position = new_scroll_x, new_scroll_y