Ensure there are no empty tabs in a startup session

This commit is contained in:
Kovid Goyal
2016-12-07 08:57:39 +05:30
parent 5f04be365f
commit 2a57eed39a

View File

@@ -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