From 16d496652f1c8b178dd1fa0492ef7f0e8f9cb183 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Sat, 23 Feb 2019 14:21:53 +0300 Subject: [PATCH] quote path where we cd berfore launching fzf --- rc/fzf.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/fzf.kak b/rc/fzf.kak index f0e4063..757745e 100644 --- a/rc/fzf.kak +++ b/rc/fzf.kak @@ -166,7 +166,7 @@ fzf -params 2..4 %{ evaluate-commands %sh{ tmp=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-tmp.XXXXXX) fzfcmd=$(mktemp ${TMPDIR:-/tmp}/kak-fzfcmd.XXXXXX) - printf "%s\n" "cd $PWD && $preview_pos $items_command | SHELL=$(command -v sh) fzf $additional_flags > $tmp; rm $fzfcmd" > $fzfcmd + printf "%s\n" "cd \"$PWD\" && $preview_pos $items_command | SHELL=$(command -v sh) fzf $additional_flags > $tmp; rm $fzfcmd" > $fzfcmd chmod 755 $fzfcmd if [ -n "$kak_client_env_TMUX" ]; then