Fix the size of nicks in user_list window

This commit is contained in:
Florent Le Coz 2011-01-12 20:37:57 +01:00
parent 9237f79490
commit 9d0d8b88b9

View file

@ -137,7 +137,7 @@ class UserList(Win):
else: else:
show_col = self.color_show[user.show] show_col = self.color_show[user.show]
self.addstr(y, 0, theme.CHAR_STATUS, curses.color_pair(show_col)) self.addstr(y, 0, theme.CHAR_STATUS, curses.color_pair(show_col))
self.addstr(y, 1, user.nick[:self.width-1], curses.color_pair(role_col)) self.addstr(y, 1, user.nick[:self.width-2], curses.color_pair(role_col))
y += 1 y += 1
if y == self.height: if y == self.height:
break break