This commit is contained in:
Kovid Goyal 2020-03-15 07:54:55 +05:30
parent 7c4a2ba329
commit f353131b44
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -261,7 +261,7 @@ def launch(boss: Boss, opts: LaunchCLIOptions, args: List[str], target_tab: Opti
set_primary_selection(stdin) set_primary_selection(stdin)
else: else:
tab = tab_for_window(boss, opts, target_tab) tab = tab_for_window(boss, opts, target_tab)
if tab: if tab is not None:
new_window: Window = tab.new_window(env=env or None, **kw) new_window: Window = tab.new_window(env=env or None, **kw)
if opts.keep_focus and active: if opts.keep_focus and active:
boss.set_active_window(active, switch_os_window_if_needed=True) boss.set_active_window(active, switch_os_window_if_needed=True)