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