diff options
Diffstat (limited to 'src')
-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) |