From 53d9b9b67650a2b34345d9153bef2a01cb75c418 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 6 Feb 2024 20:50:14 +1100 Subject: [PATCH] Escaping tweak in git.kak --- rc/tools/git.kak | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc/tools/git.kak b/rc/tools/git.kak index d9a603e58..bbe8d65f8 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -166,16 +166,16 @@ define-command -params 1.. \ mkfifo ${output} ( git "$@" > ${output} 2>&1 & ) > /dev/null 2>&1 < /dev/null - printf %s "evaluate-commands -try-client '$kak_opt_docsclient' ' + printf %s "evaluate-commands -try-client '$kak_opt_docsclient' %{ edit! -fifo ${output} *git* set-option buffer filetype ${filetype} $(hide_blame) set-option buffer git_blob %{} - hook -always -once buffer BufCloseFifo .* '' + hook -always -once buffer BufCloseFifo .* %{ nop %sh{ rm -r $(dirname ${output}) } - $(printf %s "${on_close_fifo}" | sed "s/'/''''/g") - '' - '" + $(printf %s "${on_close_fifo}" | sed s/\'/\'\'/g) + } + }" } hide_blame() {