1
0
Fork 0

fix escaping of &

This commit is contained in:
Andrey Orst 2019-06-26 16:41:36 +03:00
parent 1143b5b164
commit 2d2d4b47ad

View file

@ -225,7 +225,7 @@ fzf -params .. %{ evaluate-commands %sh{
*) item=${line} ;; *) item=${line} ;;
esac esac
if [ -n "${item}" ]; then 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}@&" printf "%s\n" "evaluate-commands -client ${kak_client} ${wincmd} %&${kakoune_cmd} %@${item}@&"
break break
fi fi