Commit c66bae54 authored by mathieui's avatar mathieui

When closing a tab, go to the previous one, and not the one before it in the tab list

parent 16276cd1
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment