diff options
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 7 |
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)) |