From eda1d2bb965b75dc5cfe7da39eb0a978abd1c72d Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 6 Oct 2022 21:26:08 -0400 Subject: [PATCH] Quote response fifo --- kakplugin/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kakplugin/src/lib.rs b/kakplugin/src/lib.rs index bc764b1..ab9809a 100644 --- a/kakplugin/src/lib.rs +++ b/kakplugin/src/lib.rs @@ -281,13 +281,13 @@ where cmd(match keys.as_ref() { None => format!( - "echo -quoting shell -to-file {response_fifo} -- {}", + "echo -quoting shell -to-file '{response_fifo}' -- {}", msg.as_ref() ), Some(keys) => format!( r#"evaluate-commands -draft %{{ execute-keys '{}'; - echo -quoting shell -to-file {response_fifo} -- {}; + echo -quoting shell -to-file '{response_fifo}' -- {}; }}"#, escape(keys.as_ref()), msg.as_ref()