Commit b080c53a authored by louiz’'s avatar louiz’

Scroll the FormWin when resize moves the current line out of the visible area

parent 16d80a2f
......@@ -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):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment