diff options
author | mathieui <mathieui@mathieui.net> | 2014-05-06 00:27:05 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-05-06 00:27:05 +0200 |
commit | c66bae5412dcd0e2599e2c903e821e80762e3d3d (patch) | |
tree | 7b2295a3cfc2a289cafad4b29d02b4dd00adb227 | |
parent | 16276cd163ae1761067ad5fef532fdf32da36bb5 (diff) | |
download | poezio-c66bae5412dcd0e2599e2c903e821e80762e3d3d.tar.gz poezio-c66bae5412dcd0e2599e2c903e821e80762e3d3d.tar.bz2 poezio-c66bae5412dcd0e2599e2c903e821e80762e3d3d.tar.xz poezio-c66bae5412dcd0e2599e2c903e821e80762e3d3d.zip |
When closing a tab, go to the previous one, and not the one before it in the tab list
-rw-r--r-- | src/core/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core.py b/src/core/core.py index 622cad78..e340bd5d 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -1234,6 +1234,9 @@ class Core(object): del tab.commands # and make the object collectable tab.on_close() nb = tab.nb + if self.previous_tab_nb != nb: + self.current_tab_nb = self.previous_tab_nb + self.previous_tab_nb = 0 if config.get('create_gaps', False): if nb >= len(self.tabs) - 1: self.tabs.remove(tab) |