From e6e339fcd38ffe0a083b43c83171edec78ee16ac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 28 Mar 2020 08:44:48 +0530 Subject: [PATCH] ... --- kitty/launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/launch.py b/kitty/launch.py index f44bbb68f..fe997f3b2 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -184,7 +184,7 @@ def tab_for_window(boss: Boss, opts: LaunchCLIOptions, target_tab: Optional[Tab] oswid = boss.add_os_window(wclass=opts.os_window_class, wname=opts.os_window_name) tm = boss.os_window_map[oswid] tab = tm.new_tab(empty_tab=True) - if opts.tab_title: + if opts.tab_title and tab is not None: tab.set_title(opts.tab_title) else: tab = target_tab or boss.active_tab