From 89b95c036f28d44f99776d0864f03c6451d5e02f Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Mon, 26 Jul 2010 17:56:22 +0000 Subject: fixed #1665 --- src/window.py | 7 +++++-- 1 file 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)) -- cgit v1.2.3