diff options
author | mathieui <mathieui@mathieui.net> | 2012-10-13 15:58:02 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-10-13 15:58:02 +0200 |
commit | 285c49a0d0e93a30ffad16a1b889edbb7cec9fb7 (patch) | |
tree | 54ee1e8164f325cf3509b7f05273ad415b3a0a40 /src/tabs.py | |
parent | 4638e7b7b58d39ef1436034deead5d573ca81527 (diff) | |
download | poezio-285c49a0d0e93a30ffad16a1b889edbb7cec9fb7.tar.gz poezio-285c49a0d0e93a30ffad16a1b889edbb7cec9fb7.tar.bz2 poezio-285c49a0d0e93a30ffad16a1b889edbb7cec9fb7.tar.xz poezio-285c49a0d0e93a30ffad16a1b889edbb7cec9fb7.zip |
Fixes #2374 (Crash on " " in the MUC list)
- Also fixes arefresh issue (up&down keys didn’t refresh the win)
- Rework the style of the Columns a bit (was 2-spaces indent & trailing
spaces)
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py index da6bceaf..68a93667 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -2965,8 +2965,8 @@ class MucListTab(Tab): self.listview = windows.ListWin(columns) self.default_help_message = windows.HelpText("“j”: join room.") self.input = self.default_help_message - self.key_func["KEY_DOWN"] = self.listview.move_cursor_down - self.key_func["KEY_UP"] = self.listview.move_cursor_up + self.key_func["KEY_DOWN"] = self.move_cursor_down + self.key_func["KEY_UP"] = self.move_cursor_up self.key_func['^I'] = self.completion self.key_func["/"] = self.on_slash self.key_func['j'] = self.join_selected @@ -3106,6 +3106,16 @@ class MucListTab(Tab): def on_scroll_down(self): return self.listview.scroll_down() + def move_cursor_up(self): + self.listview.move_cursor_up() + self.listview.refresh() + self.core.doupdate() + + def move_cursor_down(self): + self.listview.move_cursor_down() + self.listview.refresh() + self.core.doupdate() + class XMLTab(Tab): def __init__(self): |