This commit is contained in:
Kovid Goyal 2020-02-06 16:21:40 +05:30
parent 547f138703
commit 1eee6deb22
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)