summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-26 17:56:22 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-26 17:56:22 +0000
commit89b95c036f28d44f99776d0864f03c6451d5e02f (patch)
tree1b48f0c69efe1c1b9a8b9ea158b0f6b8265ed9b6
parentbee3b7c75c27a7f162f2e745f6d5835ca16b11d6 (diff)
downloadpoezio-89b95c036f28d44f99776d0864f03c6451d5e02f.tar.gz
poezio-89b95c036f28d44f99776d0864f03c6451d5e02f.tar.bz2
poezio-89b95c036f28d44f99776d0864f03c6451d5e02f.tar.xz
poezio-89b95c036f28d44f99776d0864f03c6451d5e02f.zip
fixed #1665
-rw-r--r--src/window.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/window.py b/src/window.py
index f743169f..a3c35b2e 100644
--- a/src/window.py
+++ b/src/window.py
@@ -284,12 +284,15 @@ class TextWin(Win):
def write_text(self, y, x, txt, color):
"""
- return the number of line written, -1
+ write the text of a line.
"""
txt = txt.encode('utf-8')
if color:
self.win.attron(curses.color_pair(color))
- self.win.addstr(y, x, txt)
+ try:
+ self.win.addstr(y, x, txt)
+ except: # bug 1665
+ pass
if color:
self.win.attroff(curses.color_pair(color))