Fix a regression in 0.17 that broke the kitty @ launch remote command and also broke the --tab-title option when creating a new tab.

Fixes #2488
This commit is contained in:
Kovid Goyal
2020-03-28 08:43:32 +05:30
parent 90985cc846
commit f04680ac47
3 changed files with 6 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ def tab_for_window(boss: Boss, opts: LaunchCLIOptions, target_tab: Optional[Tab]
tm = boss.active_tab_manager
if tm:
tab: Optional[Tab] = tm.new_tab(empty_tab=True, location=opts.location)
if opts.tab_title and tab:
if opts.tab_title and tab is not None:
tab.set_title(opts.tab_title)
else:
tab = None