summaryrefslogtreecommitdiff
path: root/src/tabs/listtab.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/listtab.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/listtab.py')
-rw-r--r--src/tabs/listtab.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tabs/listtab.py b/src/tabs/listtab.py
index 7021c8e3..4d8bab9c 100644
--- a/src/tabs/listtab.py
+++ b/src/tabs/listtab.py
@@ -141,6 +141,8 @@ class ListTab(Tab):
@refresh_wrapper.always
def reset_help_message(self, _=None):
+ if self.closed:
+ return True
curses.curs_set(0)
self.input = self.default_help_message
self.input.resize(1, self.width, self.height-1, 0)