Scroll the input after erasing the last visible char
This commit is contained in:
parent
2e8d99be30
commit
2363e3f1bd
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ class Input(Win):
|
||||||
self.view_pos = 0
|
self.view_pos = 0
|
||||||
return
|
return
|
||||||
# cursor outside of the screen (left)
|
# 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)
|
self.view_pos = self.pos - max(1 * self.width // 3, 1)
|
||||||
# cursor outside of the screen (right)
|
# cursor outside of the screen (right)
|
||||||
elif self.pos >= self.view_pos + self.width - 1:
|
elif self.pos >= self.view_pos + self.width - 1:
|
||||||
|
|
Loading…
Reference in a new issue