diff options
author | Łabędź <github@labedz.org> | 2012-12-13 20:32:18 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-12-13 22:03:36 +0100 |
commit | 1835d3649504389b773452bbb0bcf7469f53fdd9 (patch) | |
tree | bf64cacd2c2fd2971e4e5b82fd01cd0a7eca0139 /src/tabs.py | |
parent | 0bf26e128a221aae0062d20054a0e15a6b0361f9 (diff) | |
download | poezio-1835d3649504389b773452bbb0bcf7469f53fdd9.tar.gz poezio-1835d3649504389b773452bbb0bcf7469f53fdd9.tar.bz2 poezio-1835d3649504389b773452bbb0bcf7469f53fdd9.tar.xz poezio-1835d3649504389b773452bbb0bcf7469f53fdd9.zip |
bugfix: count roster list length by real listed item and not count filtered items
bugfix: use cache table of roster (created on every refresh) to get selected row object,
fixing bad row selecting when jumping over group (was changing pos variable and
not selected_row while moving to next contact after group)
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index 0d99e19c..f8a6ecac 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -2559,25 +2559,28 @@ class RosterInfoTab(Tab): while not isinstance(self.roster_win.get_selected_row(), Contact): if not self.roster_win.move_cursor_up(): break + self.roster_win.refresh(roster) def move_cursor_to_next_contact(self): self.roster_win.move_cursor_down() - self.roster_win.refresh(roster) while not isinstance(self.roster_win.get_selected_row(), Contact): if not self.roster_win.move_cursor_down(): break + self.roster_win.refresh(roster) def move_cursor_to_prev_group(self): self.roster_win.move_cursor_up() while not isinstance(self.roster_win.get_selected_row(), RosterGroup): if not self.roster_win.move_cursor_up(): break + self.roster_win.refresh(roster) def move_cursor_to_next_group(self): self.roster_win.move_cursor_down() while not isinstance(self.roster_win.get_selected_row(), RosterGroup): if not self.roster_win.move_cursor_down(): break + self.roster_win.refresh(roster) def on_scroll_down(self): return self.roster_win.move_cursor_down(self.height // 2) |