summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-08-19 00:12:23 +0200
committermathieui <mathieui@mathieui.net>2015-08-19 00:12:23 +0200
commit11c69343a4172d83e1af9a0dc013ca0570eff955 (patch)
tree5ac72ef8956eb61ad452873b9160e6801157f77b /src/windows
parent37774bc35290089838b671cd4a1b6842bce1842f (diff)
downloadpoezio-11c69343a4172d83e1af9a0dc013ca0570eff955.tar.gz
poezio-11c69343a4172d83e1af9a0dc013ca0570eff955.tar.bz2
poezio-11c69343a4172d83e1af9a0dc013ca0570eff955.tar.xz
poezio-11c69343a4172d83e1af9a0dc013ca0570eff955.zip
Remove a wrong assert
That would cause a crash when the input contained characters taking 0 spaces.
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/inputs.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/windows/inputs.py b/src/windows/inputs.py
index 8102dfcc..80f0c900 100644
--- a/src/windows/inputs.py
+++ b/src/windows/inputs.py
@@ -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()