summaryrefslogtreecommitdiff
path: root/src/tabs/xmltab.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-06-11 13:47:49 +0200
committermathieui <mathieui@mathieui.net>2016-06-11 13:47:49 +0200
commit7072b8f6355cabeb633ed38d6ab147bb2c359a51 (patch)
treeaf6f16f610401260e3675523ef07329d32c58f0b /src/tabs/xmltab.py
parent2225d13ad16ef4bfa0c72d1313b09499a8518c65 (diff)
downloadpoezio-7072b8f6355cabeb633ed38d6ab147bb2c359a51.tar.gz
poezio-7072b8f6355cabeb633ed38d6ab147bb2c359a51.tar.bz2
poezio-7072b8f6355cabeb633ed38d6ab147bb2c359a51.tar.xz
poezio-7072b8f6355cabeb633ed38d6ab147bb2c359a51.zip
Fix a refresh bug
On xmltab and listtab, the help text would be displayed in the input after closing the tab.
Diffstat (limited to 'src/tabs/xmltab.py')
-rw-r--r--src/tabs/xmltab.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tabs/xmltab.py b/src/tabs/xmltab.py
index 24187605..b063ad35 100644
--- a/src/tabs/xmltab.py
+++ b/src/tabs/xmltab.py
@@ -20,7 +20,7 @@ from . import Tab
import text_buffer
import windows
from xhtml import clean_text
-from decorators import command_args_parser
+from decorators import command_args_parser, refresh_wrapper
from common import safeJID
@@ -256,12 +256,13 @@ class XMLTab(Tab):
self.input.resize(1, self.width, self.height-1, 0)
self.input.do_command("/") # we add the slash
+ @refresh_wrapper.always
def reset_help_message(self, _=None):
+ if self.closed:
+ return True
if self.core.current_tab() is self:
curses.curs_set(0)
self.input = self.default_help_message
- self.input.refresh()
- self.core.doupdate()
return True
def on_scroll_up(self):