From 7a27144b7aebd0a1d7a8e77ec2134492d9586fc8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Aug 2025 20:08:25 +0530 Subject: [PATCH] Insert some blank lines in the generated session file --- kitty/tabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index cf6c8529d..4749bb39a 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -305,6 +305,7 @@ class Tab: # {{{ launch_cmds.append('focus') if launch_cmds: return [ + '', f'new_tab {self.name}'.rstrip(), f'layout {self._current_layout_name}', f'enabled_layouts {",".join(self.enabled_layouts)}', @@ -1203,7 +1204,7 @@ class TabManager: # {{{ for tab in sorted(self, key=skey): ans.extend(tab.serialize_state_as_session()) if ans: - prefix = [] if is_first else ['new_os_window'] + prefix = [] if is_first else ['', '', 'new_os_window'] if self.wm_class: prefix.append(f'os_window_class {self.wm_class}') if self.wm_name: