From d81568eebe72f7c94df297d4482f5b612f425f6b Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 20 Jun 2013 23:28:40 +0200 Subject: Use a logical order of arguments in the poopt functions, now --- src/windows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/windows.py') diff --git a/src/windows.py b/src/windows.py index b0ba845e..76137d85 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, poopt.cut_by_columns(self.width-2, user.nick), to_curses_attr(user.color)) + self.addstr(y, 2, poopt.cut_by_columns(user.nick, self.width-2), to_curses_attr(user.color)) if config.get('user_list_sort', 'desc').lower() == 'asc': y -= 1 else: @@ -888,7 +888,7 @@ class TextWin(Win): offset += 1 if get_theme().CHAR_TIME_RIGHT and message.str_time: offset += 1 - lines = poopt.cut_text(self.width-offset-1, txt) + lines = poopt.cut_text(txt, self.width-offset-1) prepend = '' attrs = [] for line in lines: -- cgit v1.2.3