mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +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 action == 'self':
|
||||||
if w is not None:
|
if w is not None:
|
||||||
import shlex
|
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':
|
elif action == 'background':
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.Popen(cmd)
|
subprocess.Popen(cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user