Remove a wrong assert

That would cause a crash when the input contained characters taking 0
spaces.
This commit is contained in:
mathieui 2015-08-19 00:12:23 +02:00
parent 37774bc352
commit 11c69343a4
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -541,9 +541,6 @@ class Input(Win):
if poopt.wcswidth(self.text) < self.width:
self.view_pos = 0
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__)
self.rewrite_text()