mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 03:29:10 +02:00
Ensure there are no empty tabs in a startup session
This commit is contained in:
@@ -73,6 +73,9 @@ def parse_session(raw, opts):
|
||||
ans.set_cwd(rest)
|
||||
else:
|
||||
raise ValueError('Unknown command in session file: {}'.format(cmd))
|
||||
for t in ans.tabs:
|
||||
if not t.windows:
|
||||
t.windows.append([shell_path])
|
||||
return ans
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user