From 8634b5ea66cd8fb305d41a2680c66a7d4fcde73c Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 22 Jul 2016 19:56:07 +0200 Subject: Fix a bug with the _close_tab shortcut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit on_close wasn’t used correctly everywhere. Also make the "close" commands for each tab specific to themselves, rather than taking the current tab for closure. --- poezio/tabs/xmltab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'poezio/tabs/xmltab.py') diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py index 937ab0f9..3fdaffc7 100644 --- a/poezio/tabs/xmltab.py +++ b/poezio/tabs/xmltab.py @@ -303,7 +303,7 @@ class XMLTab(Tab): return self.key_func[key]() def close(self, arg=None): - self.core.close_tab() + self.core.close_tab(self) def resize(self): self.need_resize = False @@ -348,6 +348,7 @@ class XMLTab(Tab): curses.curs_set(0) def on_close(self): + super().on_close() self.command_clear('') self.core.xml_tab = False -- cgit v1.2.3