summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 00:45:45 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 00:45:45 +0000
commit1ae7bc2f63a19569cbdc1ca18b6a400263c22011 (patch)
tree2eded1ab31fa00570fdd9d8c79b883b1d24feb2a /src/window.py
parent78ff11afb122220e5000786dcbd13e224dabccec (diff)
downloadpoezio-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.py5
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]