mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 18:37:50 +00:00
Fix error when using @arg for stdin and no match found
This commit is contained in:
parent
aaf94b61ed
commit
b7e8bd2faf
1 changed files with 3 additions and 1 deletions
|
|
@ -307,7 +307,9 @@ class Boss:
|
|||
return w.buffer_as_text()
|
||||
|
||||
if args[0].startswith('@'):
|
||||
stdin = data_for_at(args[0]).encode('utf-8')
|
||||
stdin = data_for_at(args[0]) or None
|
||||
if stdin is not None:
|
||||
stdin = stdin.encode('utf-8')
|
||||
del args[0]
|
||||
|
||||
cmd = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue