diff options
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/data_forms.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tabs/data_forms.py b/src/tabs/data_forms.py index e873fe25..5f44a8f6 100644 --- a/src/tabs/data_forms.py +++ b/src/tabs/data_forms.py @@ -435,6 +435,10 @@ class FormWin(object): def resize(self, height, width, y, x): self.height = height self.width = width + # Adjust the scroll position, if resizing made the window too small + # for the cursor to be visible + while self.current_input - self.scroll_pos > self.height-1: + self.scroll_pos += 1 def reply(self): """ |