diff options
author | mathieui <mathieui@mathieui.net> | 2016-07-22 19:56:07 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-07-22 19:56:07 +0200 |
commit | 8634b5ea66cd8fb305d41a2680c66a7d4fcde73c (patch) | |
tree | b8b70bddee730c87e43c31cd826fa2bd1d2d0db3 /poezio/tabs/muctab.py | |
parent | 89194356ee3b61c6c630d15b8aeb94c91cbacba4 (diff) | |
download | poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.tar.gz poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.tar.bz2 poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.tar.xz poezio-8634b5ea66cd8fb305d41a2680c66a7d4fcde73c.zip |
Fix a bug with the _close_tab shortcut
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.
Diffstat (limited to 'poezio/tabs/muctab.py')
-rw-r--r-- | poezio/tabs/muctab.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index e0f3b6e2..281237ad 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -624,7 +624,11 @@ class MucTab(ChatTab): /close [msg] """ self.command_part(msg) - self.core.close_tab() + self.core.close_tab(self) + + def on_close(self): + super().on_close() + self.command_part('') @command_args_parser.quoted(1, 1) def command_query(self, args): |