mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-16 09:41:08 +00:00
...
This commit is contained in:
parent
9dc3e56e5e
commit
09ff0b1c52
1 changed files with 1 additions and 2 deletions
|
|
@ -1189,8 +1189,7 @@ class TabManager: # {{{
|
|||
def serialize_state_as_session(self, is_first: bool = False) -> list[str]:
|
||||
ans = []
|
||||
hmap = {tab_id: i for i, tab_id in enumerate(self.active_tab_history)}
|
||||
at = self.active_tab
|
||||
if at is not None:
|
||||
if (at := self.active_tab) is not None:
|
||||
hmap[at.id] = len(self.active_tab_history) + 1
|
||||
def skey(tab: Tab) -> int:
|
||||
return hmap.get(tab.id, -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue