Fix adding tabs causing an exception because I forgot to extend the copied tabs list

This commit is contained in:
Kovid Goyal 2025-08-24 20:05:49 +05:30
parent 5740173bdc
commit de61262563
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1338,6 +1338,7 @@ def new_tab(
for w in t:
w.created_in_session_name = session_name
self._add_tab(t)
tabs = tuple(tabs) + (t,)
if as_neighbor:
location = 'after'
if location == 'neighbor':