summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-16 22:59:15 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-16 22:59:15 +0000
commit68573a6598e61e55c0e3217e095d34b6f87f5932 (patch)
tree7b12e5c493460dd9a3fa484301fd9f98e2444c90 /src
parentfe9a7ca7bb883a68f70c6f3949d7f5902cdf384b (diff)
downloadpoezio-68573a6598e61e55c0e3217e095d34b6f87f5932.tar.gz
poezio-68573a6598e61e55c0e3217e095d34b6f87f5932.tar.bz2
poezio-68573a6598e61e55c0e3217e095d34b6f87f5932.tar.xz
poezio-68573a6598e61e55c0e3217e095d34b6f87f5932.zip
fix a crash on completion with unicode nicks
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 54ff4353..e2fcd634 100644
--- a/src/window.py
+++ b/src/window.py
@@ -392,7 +392,7 @@ class Input(Win):
self.win.clrtoeol()
self.text = self.text[:-end]
nick = self.hit_list[0] # take the first hit
- self.text += nick+after
+ self.text += nick.decode('utf-8') +after
self.pos = len(self.text)
self.win.addstr(nick+after)
self.refresh()
@@ -437,7 +437,7 @@ class Input(Win):
# remove begin from the line
self.win.clrtoeol()
self.text = self.text[:-len(begin)]
- self.text += nick
+ self.text += nick.decode('utf-8')
self.pos = len(self.text)
self.win.addstr(nick)
self.refresh()