From 543e113be06a6dbf64b8fc7b318721e2da1aa598 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Aug 2025 20:07:01 +0530 Subject: [PATCH] ... --- kitty/tabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index c280d3048..5ce9e4293 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -1325,7 +1325,7 @@ class TabManager: # {{{ location: str = 'last', ) -> Tab: idx = len(self.tabs) - tabs = self.tabs_to_be_shown_in_tab_bar_as_sequence + tabs = tuple(self.tabs_to_be_shown_in_tab_bar) orig_active_tab_idx = 0 with suppress(ValueError): orig_active_tab_idx = tabs.index(self.active_tab) @@ -1338,7 +1338,7 @@ class TabManager: # {{{ for w in t: w.created_in_session_name = session_name self._add_tab(t) - tabs = tuple(tabs) + (t,) + tabs = tabs + (t,) if as_neighbor: location = 'after' if location == 'neighbor':