mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-22 13:12:23 +00:00
Fix #3576
This commit is contained in:
parent
c735d1f6ac
commit
4a83584934
1 changed files with 1 additions and 1 deletions
|
|
@ -756,7 +756,7 @@ class TabManager: # {{{
|
|||
active_tab_before_removal = self.active_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 and active_tab_before_removal is None) or self.active_tab is tab
|
||||
except IndexError:
|
||||
active_tab_needs_to_change = True
|
||||
while True:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue