summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-07-19 00:45:12 +0200
committermathieui <mathieui@mathieui.net>2014-07-19 00:45:12 +0200
commit2363e3f1bd0d94913d196fd26926cce944749d33 (patch)
treed37049c22de3c9bdb8d1eea786a884ee67cbb79a /src/windows
parent2e8d99be30ea561e34d4ea24dcdde8702122d3ba (diff)
downloadpoezio-2363e3f1bd0d94913d196fd26926cce944749d33.tar.gz
poezio-2363e3f1bd0d94913d196fd26926cce944749d33.tar.bz2
poezio-2363e3f1bd0d94913d196fd26926cce944749d33.tar.xz
poezio-2363e3f1bd0d94913d196fd26926cce944749d33.zip
Scroll the input after erasing the last visible char
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/inputs.py2
1 files changed, 1 insertions, 1 deletions
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: