From 8134d06d328ffbb0416eeddddb1abb72d12916ff Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Thu, 5 Aug 2010 22:54:57 +0000 Subject: fixed #1679 --- src/window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/window.py b/src/window.py index 3419ae2c..a0b58cfd 100644 --- a/src/window.py +++ b/src/window.py @@ -129,8 +129,12 @@ class Topic(Win): self.win.erase() if not jid: try: - self.win.addnstr(0, 0, topic + " "*(self.width-len(topic)), self.width - , curses.color_pair(1)) + self.win.addstr(0, 0, topic, curses.color_pair(1)) + while True: + try: + self.win.addch(' ', curses.color_pair(1)) + except: + break except: pass elif jid: -- cgit v1.2.3