mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
Ensure there are no empty tabs in a startup session
This commit is contained in:
parent
5f04be365f
commit
2a57eed39a
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue