Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Feb 18, 2025
1 parent 8f44e16 commit ba24ce5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kitty/boss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1967,10 +1967,8 @@ def run_kitten_with_metadata(
copts = common_opts_as_dict(get_options())
final_args: list[str] = []
for x in args:
if x == '@selection':
sel = self.data_for_at(which='@selection', window=w)
if sel:
x = sel
if x == '@selection' and (sel := self.data_for_at(which='@selection', window=w)):
x = sel
final_args.append(x)
env = {
'KITTY_COMMON_OPTS': json.dumps(copts),
Expand Down

0 comments on commit ba24ce5

Please sign in to comment.