Fix the position of the ++ indicator in muc user list when asc sort is in use.

fix #2181
This commit is contained in:
Florent Le Coz 2012-12-15 03:51:38 +01:00
parent c7f4abaef6
commit b23e7751d2

View file

@ -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):