summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-06-20 22:30:08 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-06-20 22:30:08 +0200
commit5b4048000eba152fd1483746669e9bfdd040fc55 (patch)
tree6e4e6548b55055166c31e1f38836bdd41467a072 /src/windows.py
parentda6c11603cf37c190bb30f3d2e9bcb5a83f17824 (diff)
downloadpoezio-5b4048000eba152fd1483746669e9bfdd040fc55.tar.gz
poezio-5b4048000eba152fd1483746669e9bfdd040fc55.tar.bz2
poezio-5b4048000eba152fd1483746669e9bfdd040fc55.tar.xz
poezio-5b4048000eba152fd1483746669e9bfdd040fc55.zip
Use cut_by_columns to properly cut nicks in the UserWin window
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index c5fd883c..b0ba845e 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -269,7 +269,7 @@ class UserList(Win):
for user in users[self.pos:]:
self.draw_role_affiliation(y, user)
self.draw_status_chatstate(y, user)
- self.addstr(y, 2, user.nick[:self.width-2], to_curses_attr(user.color))
+ self.addstr(y, 2, poopt.cut_by_columns(self.width-2, user.nick), to_curses_attr(user.color))
if config.get('user_list_sort', 'desc').lower() == 'asc':
y -= 1
else: