From 36c02ef0588ce3e10815c40dea26c89ec4cc04f3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 15 Oct 2012 19:56:15 +0200 Subject: Fix a refresh issue with /message --- src/decorators.py | 2 -- src/tabs.py | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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): -- cgit v1.2.3