summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-07-19 00:41:47 +0200
committermathieui <mathieui@mathieui.net>2014-07-19 00:41:47 +0200
commit2e8d99be30ea561e34d4ea24dcdde8702122d3ba (patch)
treef8b8ee73cd7af4b68a2d98b269c43a4d819c19c1 /src
parenta3556a793af4bbec4d356e977ed22cd9702cd474 (diff)
downloadpoezio-2e8d99be30ea561e34d4ea24dcdde8702122d3ba.tar.gz
poezio-2e8d99be30ea561e34d4ea24dcdde8702122d3ba.tar.bz2
poezio-2e8d99be30ea561e34d4ea24dcdde8702122d3ba.tar.xz
poezio-2e8d99be30ea561e34d4ea24dcdde8702122d3ba.zip
Fix #2563 (fix the asserts in adjust_view_pos)
Thanks djanos
Diffstat (limited to 'src')
-rw-r--r--src/windows/inputs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/windows/inputs.py b/src/windows/inputs.py
index 8c2f2e2e..1eadc765 100644
--- a/src/windows/inputs.py
+++ b/src/windows/inputs.py
@@ -534,9 +534,8 @@ class Input(Win):
if self.view_pos < 0:
self.view_pos = 0
-
- assert(self.pos > self.view_pos and
- self.pos < self.view_pos + max(self.width, 3))
+ assert(self.pos >= self.view_pos and
+ self.pos <= self.view_pos + max(self.width, 3))
def refresh(self):
log.debug('Refresh: %s', self.__class__.__name__)