mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix #2339
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user