Fix #3400
This commit is contained in:
parent
b063c8cda1
commit
f3e2a42c29
@ -745,7 +745,10 @@ class TabManager: # {{{
|
|||||||
|
|
||||||
def remove(self, tab: Tab) -> None:
|
def remove(self, tab: Tab) -> None:
|
||||||
self._remove_tab(tab)
|
self._remove_tab(tab)
|
||||||
|
try:
|
||||||
active_tab_needs_to_change = self.active_tab is None or self.active_tab is tab
|
active_tab_needs_to_change = self.active_tab is None or self.active_tab is tab
|
||||||
|
except IndexError:
|
||||||
|
active_tab_needs_to_change = True
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
self.active_tab_history.remove(tab.id)
|
self.active_tab_history.remove(tab.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user