From 639de4c27bb29425cd2c51680fa79d53fcffc4e4 Mon Sep 17 00:00:00 2001 From: Tobias Frilling Date: Sun, 28 Aug 2016 20:34:36 +0200 Subject: [PATCH] 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. --- shell/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/completion.zsh b/shell/completion.zsh index 623602f..cef8afa 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -186,7 +186,7 @@ fzf-completion() { [ -z "$fzf_default_completion" ] && { binding=$(bindkey '^I') - [[ $binding =~ 'undefined-key' ]] || fzf_default_completion=$binding[(w)2] + [[ $binding =~ 'undefined-key' ]] || fzf_default_completion=$binding[(s: :w)2] unset binding }