Scroll the input after erasing the last visible char

This commit is contained in:
mathieui 2014-07-19 00:45:12 +02:00
parent 2e8d99be30
commit 2363e3f1bd
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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: