Closed krobelus closed 5 years ago
I've pushed the fix, but given that you're using tag "v1.0.1"
I assume that you're using stable kakoune release, so here's the patch that you can apply manually, I guess..
diff --git a/rc/fzf.kak b/rc/fzf.kak
index 70cde2c..899e7bb 100644
--- a/rc/fzf.kak
+++ b/rc/fzf.kak
@@ -225,7 +225,8 @@ fzf -params .. %{ evaluate-commands %sh{
*) item=${line} ;;
esac
if [ -n "${item}" ]; then
- printf "%s\n" "evaluate-commands -client ${kak_client} ${wincmd} %{${kakoune_cmd} %{${item}}}"
+ item=$(printf "%s\n" "${item}" | sed "s/@/@@/g")
+ printf "%s\n" "evaluate-commands -client ${kak_client} ${wincmd} %&${kakoune_cmd} %@${item}@&"
break
fi
done
Great! I couldn't spot the source of the problem right away so thanks for fixing it so quickly :)
Steps to reproduce
Create file
minimal_kakrc
Start kak and enter fuzzy grep mode.
kak -n minimal_kakrc -e 'source minimal_kakrc; fzf-mode; execute-keys g'
What should happen
The cursor should jump to and select line 3.
What happens instead
It doesn't, and there's an error message in the debug buffer:
Environment information
Kakoune version: Kakoune v2019.01.20
fzf.kak
v1.0.1 (I believe master has the same issue)