From 2d2d4b47adfbde7805673c3886db2d174085dbb5 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Wed, 26 Jun 2019 16:41:36 +0300 Subject: [PATCH] fix escaping of & --- rc/fzf.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/fzf.kak b/rc/fzf.kak index 899e7bb..e03a85b 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -225,7 +225,7 @@ fzf -params .. %{ evaluate-commands %sh{ *) item=${line} ;; esac if [ -n "${item}" ]; then - item=$(printf "%s\n" "${item}" | sed "s/@/@@/g") + item=$(printf "%s\n" "${item}" | sed "s/@/@@/g;s/&/&&/g") printf "%s\n" "evaluate-commands -client ${kak_client} ${wincmd} %&${kakoune_cmd} %@${item}@&" break fi