Dont ignore --title when using an empty session

Fixes #3055
This commit is contained in:
Kovid Goyal 2020-10-25 18:53:57 +05:30
parent 3960c6678d
commit 26974b1f3a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Allow adding MIME definitions to kitty by placing a ``mime.types`` file in
the kitty config directory (:iss:`3056`)
- Dont ignore :option:`--title` when using a session file that defines no
windows (:iss:`3055`)
0.19.1 [2020-10-06]
-------------------

View File

@ -115,7 +115,7 @@ def parse_session(raw: str, opts: Options, default_title: Optional[str] = None)
w: Optional[Watchers] = None
if t.watchers.has_watchers:
w = t.watchers.copy()
t.windows.append(SpecialWindow(cmd=resolved_shell(opts), watchers=w))
t.windows.append(SpecialWindow(cmd=resolved_shell(opts), watchers=w, override_title=default_title))
return ans
ans = Session(default_title)