mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
...
This commit is contained in:
@@ -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)
|
oswid = boss.add_os_window(wclass=opts.os_window_class, wname=opts.os_window_name)
|
||||||
tm = boss.os_window_map[oswid]
|
tm = boss.os_window_map[oswid]
|
||||||
tab = tm.new_tab(empty_tab=True)
|
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)
|
tab.set_title(opts.tab_title)
|
||||||
else:
|
else:
|
||||||
tab = target_tab or boss.active_tab
|
tab = target_tab or boss.active_tab
|
||||||
|
|||||||
Reference in New Issue
Block a user