summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-11 13:42:14 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-11 13:42:14 +0100
commit26b38c810771f84b4deb7cd96a67733d71722222 (patch)
tree4095dedac7497885cb0b53d8be5b70a9a78dad8d
parent749933fc16005d8e81d54830f532dd1cb9f85773 (diff)
downloadpoezio-26b38c810771f84b4deb7cd96a67733d71722222.tar.gz
poezio-26b38c810771f84b4deb7cd96a67733d71722222.tar.bz2
poezio-26b38c810771f84b4deb7cd96a67733d71722222.tar.xz
poezio-26b38c810771f84b4deb7cd96a67733d71722222.zip
Limit nick size to the user list width
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index cbb58b3f..2bfbdec6 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -136,7 +136,7 @@ class UserList(Win):
else:
show_col = self.color_show[user.show]
self.addstr(y, 0, theme.CHAR_STATUS, curses.color_pair(show_col))
- self.addstr(y, 1, user.nick, curses.color_pair(role_col))
+ self.addstr(y, 1, user.nick[:self.width-1], curses.color_pair(role_col))
y += 1
if y == self.height:
break