diff options
author | mathieui <mathieui@mathieui.net> | 2012-10-15 19:56:15 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-10-15 19:56:15 +0200 |
commit | 36c02ef0588ce3e10815c40dea26c89ec4cc04f3 (patch) | |
tree | 7cf6261c2750d6a56d92a5ccfc1413c7cd7b6ba1 | |
parent | 59df2d3e94cd794d5561471957b17f2492c94611 (diff) | |
download | poezio-36c02ef0588ce3e10815c40dea26c89ec4cc04f3.tar.gz poezio-36c02ef0588ce3e10815c40dea26c89ec4cc04f3.tar.bz2 poezio-36c02ef0588ce3e10815c40dea26c89ec4cc04f3.tar.xz poezio-36c02ef0588ce3e10815c40dea26c89ec4cc04f3.zip |
Fix a refresh issue with /message
-rw-r--r-- | src/decorators.py | 2 | ||||
-rw-r--r-- | src/tabs.py | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/decorators.py b/src/decorators.py index 6eaac018..ab987701 100644 --- a/src/decorators.py +++ b/src/decorators.py @@ -15,7 +15,6 @@ class RefreshWrapper(object): ret = func(*args, **kwargs) if self.core and ret: self.core.refresh_window() - self.core.doupdate() return ret return wrap @@ -27,7 +26,6 @@ class RefreshWrapper(object): ret = func(*args, **kwargs) if self.core: self.core.refresh_window() - self.core.doupdate() return ret return wrap diff --git a/src/tabs.py b/src/tabs.py index f3424b56..6a79adce 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -2482,11 +2482,11 @@ class RosterInfoTab(Tab): self.input.do_command("/") # we add the slash def reset_help_message(self, _=None): + self.input = self.default_help_message if self.core.current_tab() is self: curses.curs_set(0) - self.input = self.default_help_message - self.input.refresh() - self.core.doupdate() + self.input.refresh() + self.core.doupdate() return True def execute_slash_command(self, txt): |