mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
...
This commit is contained in:
@@ -1967,10 +1967,8 @@ class Boss:
|
|||||||
copts = common_opts_as_dict(get_options())
|
copts = common_opts_as_dict(get_options())
|
||||||
final_args: list[str] = []
|
final_args: list[str] = []
|
||||||
for x in args:
|
for x in args:
|
||||||
if x == '@selection':
|
if x == '@selection' and (sel := self.data_for_at(which='@selection', window=w)):
|
||||||
sel = self.data_for_at(which='@selection', window=w)
|
x = sel
|
||||||
if sel:
|
|
||||||
x = sel
|
|
||||||
final_args.append(x)
|
final_args.append(x)
|
||||||
env = {
|
env = {
|
||||||
'KITTY_COMMON_OPTS': json.dumps(copts),
|
'KITTY_COMMON_OPTS': json.dumps(copts),
|
||||||
|
|||||||
Reference in New Issue
Block a user