From 2a57eed39aaf48a0781101c02f6128333189904e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Dec 2016 08:57:39 +0530 Subject: [PATCH] Ensure there are no empty tabs in a startup session --- kitty/session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/session.py b/kitty/session.py index 3a6dcdaf1..861d0c94e 100644 --- a/kitty/session.py +++ b/kitty/session.py @@ -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