summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-14 19:21:04 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-14 19:21:04 +0000
commit41a3f0da15005fa1851715b6f7bc4565a28c7bd8 (patch)
treeb7d708b63a46c22b471cadf3c1fdc0cb6e885f36
parent0f598bae5c6467a1a3e15732af5d82c8393be106 (diff)
downloadpoezio-41a3f0da15005fa1851715b6f7bc4565a28c7bd8.tar.gz
poezio-41a3f0da15005fa1851715b6f7bc4565a28c7bd8.tar.bz2
poezio-41a3f0da15005fa1851715b6f7bc4565a28c7bd8.tar.xz
poezio-41a3f0da15005fa1851715b6f7bc4565a28c7bd8.zip
correction utf-8 quand la ligne est trop longue et qu'on s'y déplace
-rw-r--r--src/window.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.py b/src/window.py
index fd98aec5..52865d09 100644
--- a/src/window.py
+++ b/src/window.py
@@ -322,7 +322,7 @@ class Input(Win):
if x == 0:
txt = self.text[self.pos:self.pos+self.width-1]
self.clear_text()
- self.win.addstr(txt)
+ self.win.addstr(txt.encode('utf-8'))
self.win.move(y, 0)
else:
self.win.move(y, x-1)
@@ -336,7 +336,7 @@ class Input(Win):
if x == self.width-1:
txt = self.text[self.pos-(self.width-1):self.pos]
self.clear_text()
- self.win.addstr(txt)
+ self.win.addstr(txt.encode('utf-8'))
self.win.move(y, self.width-1)
else:
self.win.move(y, x+1)