Insert some blank lines in the generated session file
This commit is contained in:
parent
ee5a2413c6
commit
7a27144b7a
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue