mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
Fix `@selection` placeholder not working with launch command
Fixes #2417
This commit is contained in:
@@ -66,6 +66,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
- Workaround for bug in less that causes colors to reset at wrapped lines
|
- Workaround for bug in less that causes colors to reset at wrapped lines
|
||||||
(:iss:`2381`)
|
(:iss:`2381`)
|
||||||
|
|
||||||
|
- Fix ``@selection`` placeholder not working with launch command (:iss:`2417`)
|
||||||
|
|
||||||
- Drop support for python 3.5
|
- Drop support for python 3.5
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ def launch(boss: Boss, opts: LaunchCLIOptions, args: List[str], target_tab: Opti
|
|||||||
for x in cmd:
|
for x in cmd:
|
||||||
if active and not opts.copy_cmdline:
|
if active and not opts.copy_cmdline:
|
||||||
if x == '@selection':
|
if x == '@selection':
|
||||||
s = boss.data_for_at(active, x)
|
s = boss.data_for_at(which=x, window=active)
|
||||||
if s:
|
if s:
|
||||||
x = s
|
x = s
|
||||||
elif x == '@active-kitty-window-id':
|
elif x == '@active-kitty-window-id':
|
||||||
|
|||||||
Reference in New Issue
Block a user