From 2e8d99be30ea561e34d4ea24dcdde8702122d3ba Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 19 Jul 2014 00:41:47 +0200 Subject: [PATCH] Fix #2563 (fix the asserts in adjust_view_pos) Thanks djanos --- src/windows/inputs.py | 5 ++--- 1 file 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__)