summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-05 22:54:57 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-05 22:54:57 +0000
commit8134d06d328ffbb0416eeddddb1abb72d12916ff (patch)
treec797851fc4815999de13cf9fffff4c531c3a7e7a /src
parentdc80a2288ef2cfed055d65b7797e9396c505c4a3 (diff)
downloadpoezio-8134d06d328ffbb0416eeddddb1abb72d12916ff.tar.gz
poezio-8134d06d328ffbb0416eeddddb1abb72d12916ff.tar.bz2
poezio-8134d06d328ffbb0416eeddddb1abb72d12916ff.tar.xz
poezio-8134d06d328ffbb0416eeddddb1abb72d12916ff.zip
fixed #1679
Diffstat (limited to 'src')
-rw-r--r--src/window.py8
1 files 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: