mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 21:05:09 +00: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:
parent
d87390934e
commit
639de4c27b
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user