m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23:48 -05:00

[zsh] Fix issues with unicode characters

This commit is contained in:
Junegunn Choi
2016-04-25 00:53:11 +09:00
parent 095f31b316
commit 988c9bd9be
3 changed files with 32 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ __fzf_generic_path_completion() {
[ "$dir" != "/" ] && dir="${dir/%\//}"
dir=${~dir}
matches=$(eval "$compgen $(printf %q "$dir")" | ${=fzf} ${=FZF_COMPLETION_OPTS} ${=fzf_opts} -q "$leftover" | while read item; do
printf "%q$suffix " "$item"
echo -n "${(q)item}$suffix "
done)
matches=${matches% }
if [ -n "$matches" ]; then