summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 15:59:37 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 15:59:37 +0000
commit18f161e4a687353f1c888d25fb1b8c3de8ee284d (patch)
tree3c58d72d3b43dd1595bf5115e9709bc10dc01abb /src/window.py
parent4a583ee2ae12316989bc0350d7d3e19c4f82577b (diff)
downloadpoezio-18f161e4a687353f1c888d25fb1b8c3de8ee284d.tar.gz
poezio-18f161e4a687353f1c888d25fb1b8c3de8ee284d.tar.bz2
poezio-18f161e4a687353f1c888d25fb1b8c3de8ee284d.tar.xz
poezio-18f161e4a687353f1c888d25fb1b8c3de8ee284d.zip
corrige un bug dans la liste de contacts (saloperie d'utf-8)
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py
index ac6c928d..0d42a88b 100644
--- a/src/window.py
+++ b/src/window.py
@@ -55,9 +55,11 @@ class UserList(Win):
except:
color = 1
self.win.attron(curses.color_pair(color))
- self.win.addstr(y, 1, user.nick)
+ self.win.addnstr(y, 1, user.nick, self.width-1)
self.win.attroff(curses.color_pair(color))
y += 1
+ if y == self.height:
+ break
self.win.refresh()
def resize(self, height, width, y, x, stdscr):