From 7072b8f6355cabeb633ed38d6ab147bb2c359a51 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 11 Jun 2016 13:47:49 +0200 Subject: Fix a refresh bug On xmltab and listtab, the help text would be displayed in the input after closing the tab. --- src/tabs/listtab.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tabs/listtab.py') 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) -- cgit v1.2.3