diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-12-15 03:51:38 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-12-15 03:51:38 +0100 |
commit | b23e7751d2b28809a40026e9e2ea7d60add63907 (patch) | |
tree | 22c6771502c970de7d8c5e1e67e737cece421dd6 | |
parent | c7f4abaef64e994854c6dce5d01b61105a448714 (diff) | |
download | poezio-b23e7751d2b28809a40026e9e2ea7d60add63907.tar.gz poezio-b23e7751d2b28809a40026e9e2ea7d60add63907.tar.bz2 poezio-b23e7751d2b28809a40026e9e2ea7d60add63907.tar.xz poezio-b23e7751d2b28809a40026e9e2ea7d60add63907.zip |
Fix the position of the ++ indicator in muc user list when asc sort is in use.
fix #2181
-rw-r--r-- | src/windows.py | 10 |
1 files 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): |