m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Split default zsh binding at the correct place

The command substitution and following word splitting to determine the default
zle widget for ^I formerly only works if the IFS parameter contains a space. Now
it specifically splits at spaces, regardless of IFS.
This commit is contained in:
Tobias Frilling
2016-08-28 20:34:36 +02:00
parent d87390934e
commit 639de4c27b

View File

@@ -186,7 +186,7 @@ fzf-completion() {
[ -z "$fzf_default_completion" ] && { [ -z "$fzf_default_completion" ] && {
binding=$(bindkey '^I') binding=$(bindkey '^I')
[[ $binding =~ 'undefined-key' ]] || fzf_default_completion=$binding[(w)2] [[ $binding =~ 'undefined-key' ]] || fzf_default_completion=$binding[(s: :w)2]
unset binding unset binding
} }