From b23e7751d2b28809a40026e9e2ea7d60add63907 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 15 Dec 2012 03:51:38 +0100 Subject: [PATCH] Fix the position of the ++ indicator in muc user list when asc sort is in use. fix #2181 --- src/windows.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/windows.py b/src/windows.py index 9b12bbb6..fae2e7bb 100644 --- a/src/windows.py +++ b/src/windows.py @@ -253,9 +253,15 @@ class UserList(Win): break # draw indicators of position in the list if self.pos > 0: - self.draw_plus(0) + if config.get('user_list_sort', 'desc').lower() == 'asc': + self.draw_plus(self.height-1) + else: + self.draw_plus(0) if self.pos + self.height < len(users): - self.draw_plus(self.height-1) + if config.get('user_list_sort', 'desc').lower() == 'asc': + self.draw_plus(0) + else: + self.draw_plus(self.height-1) self._refresh() def draw_role_affiliation(self, y, user):