summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)