Fix `@selection` placeholder not working with launch command

Fixes #2417
This commit is contained in:
Kovid Goyal
2020-03-08 08:00:36 +05:30
parent 0a6e264d09
commit a0321376d5
2 changed files with 3 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ def launch(boss: Boss, opts: LaunchCLIOptions, args: List[str], target_tab: Opti
for x in cmd:
if active and not opts.copy_cmdline:
if x == '@selection':
s = boss.data_for_at(active, x)
s = boss.data_for_at(which=x, window=active)
if s:
x = s
elif x == '@active-kitty-window-id':