Verified Commit 2363e3f1 authored by mathieui's avatar mathieui

Scroll the input after erasing the last visible char

parent 2e8d99be
......@@ -525,7 +525,7 @@ class Input(Win):
self.view_pos = 0
return
# cursor outside of the screen (left)
if self.pos < self.view_pos:
if self.pos <= self.view_pos:
self.view_pos = self.pos - max(1 * self.width // 3, 1)
# cursor outside of the screen (right)
elif self.pos >= self.view_pos + self.width - 1:
......
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