summaryrefslogtreecommitdiff
path: root/poezio/core/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-07-23 20:40:43 +0200
committermathieui <mathieui@mathieui.net>2018-07-23 20:40:43 +0200
commit38f0cd1c32a24a2d680e60608563f52e6a24dbd3 (patch)
tree8f94d8a26999fc5b1d16556c476642a4eae95543 /poezio/core/tabs.py
parent54875e1ad55348e400efe2d75efdd2b0503235e2 (diff)
downloadpoezio-38f0cd1c32a24a2d680e60608563f52e6a24dbd3.tar.gz
poezio-38f0cd1c32a24a2d680e60608563f52e6a24dbd3.tar.bz2
poezio-38f0cd1c32a24a2d680e60608563f52e6a24dbd3.tar.xz
poezio-38f0cd1c32a24a2d680e60608563f52e6a24dbd3.zip
Fix "go_to_previous_tab" and remove the usage of Command.win to move internally
Diffstat (limited to 'poezio/core/tabs.py')
-rw-r--r--poezio/core/tabs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/poezio/core/tabs.py b/poezio/core/tabs.py
index e9646959..81ad155d 100644
--- a/poezio/core/tabs.py
+++ b/poezio/core/tabs.py
@@ -229,10 +229,12 @@ class Tabs:
if tab is self._previous_tab:
self._previous_tab = None
if is_current:
- self._restore_previous_tab()
+ self.restore_previous_tab()
self._validate_current_index()
- def _restore_previous_tab(self):
+ def restore_previous_tab(self):
+ """Restore the previous tab"""
+
if self._previous_tab:
if not self.set_current_tab(self._previous_tab):
self.set_current_index(0)