Remove a wrong assert
That would cause a crash when the input contained characters taking 0 spaces.
This commit is contained in:
parent
37774bc352
commit
11c69343a4
1 changed files with 0 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue