Insert some blank lines in the generated session file

This commit is contained in:
Kovid Goyal 2025-08-12 20:08:25 +05:30
parent ee5a2413c6
commit 7a27144b7a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -305,6 +305,7 @@ def serialize_state_as_session(self) -> list[str]:
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 @@ def skey(tab: Tab) -> int:
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: