Fix #2563 (fix the asserts in adjust_view_pos)

Thanks djanos
This commit is contained in:
mathieui 2014-07-19 00:41:47 +02:00
parent a3556a793a
commit 2e8d99be30
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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__)