mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-19 21:55:13 +00:00
Fix #2339
This commit is contained in:
parent
547f138703
commit
1eee6deb22
1 changed files with 2 additions and 1 deletions
|
|
@ -550,7 +550,8 @@ def linenum_handle_result(args, data, target_window_id, boss, extra_cli_args, *a
|
|||
if action == 'self':
|
||||
if w is not None:
|
||||
import shlex
|
||||
w.paste_bytes(shlex.join(cmd) + '\r')
|
||||
text = ' '.join(shlex.quote(arg) for arg in cmd)
|
||||
w.paste_bytes(text + '\r')
|
||||
elif action == 'background':
|
||||
import subprocess
|
||||
subprocess.Popen(cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue