Verified Commit 2e8d99be authored by mathieui's avatar mathieui

Fix #2563 (fix the asserts in adjust_view_pos)

Thanks djanos
parent a3556a79
......@@ -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__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment