From 2363e3f1bd0d94913d196fd26926cce944749d33 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 19 Jul 2014 00:45:12 +0200 Subject: [PATCH] Scroll the input after erasing the last visible char --- src/windows/inputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/inputs.py b/src/windows/inputs.py index 1eadc765..db339b77 100644 --- a/src/windows/inputs.py +++ b/src/windows/inputs.py @@ -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: