diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-13 00:45:45 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-13 00:45:45 +0000 |
commit | 1ae7bc2f63a19569cbdc1ca18b6a400263c22011 (patch) | |
tree | 2eded1ab31fa00570fdd9d8c79b883b1d24feb2a /src/window.py | |
parent | 78ff11afb122220e5000786dcbd13e224dabccec (diff) | |
download | poezio-1ae7bc2f63a19569cbdc1ca18b6a400263c22011.tar.gz poezio-1ae7bc2f63a19569cbdc1ca18b6a400263c22011.tar.bz2 poezio-1ae7bc2f63a19569cbdc1ca18b6a400263c22011.tar.xz poezio-1ae7bc2f63a19569cbdc1ca18b6a400263c22011.zip |
fix various encoding crash
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py index 1b5c57ce..267c0798 100644 --- a/src/window.py +++ b/src/window.py @@ -429,7 +429,10 @@ class Input(Win): self.hit_list.append(self.hit_list.pop(0)) # rotate list end = len(begin) + len(after) x -= end - self.win.move(y, x) + try: + self.win.move(y, x) + except: + pass # remove begin from the line self.win.clrtoeol() self.text = self.text[:-end] |