From 988c9bd9be48b487bccca2d1d90d67c341c3bbf3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 25 Apr 2016 00:53:11 +0900 Subject: [zsh] Fix issues with unicode characters --- shell/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/completion.zsh') diff --git a/shell/completion.zsh b/shell/completion.zsh index 25c021a8..74d1ad32 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -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 -- cgit v1.2.3