summaryrefslogtreecommitdiff
path: root/shell/completion.zsh
diff options
context:
space:
mode:
authorTobias Frilling <tobias@frilling-online.de>2016-08-28 20:34:36 +0200
committerTobias Frilling <tobias@frilling-online.de>2016-08-28 20:34:36 +0200
commit639de4c27bb29425cd2c51680fa79d53fcffc4e4 (patch)
tree6ce760ab483fb7718069c5b2b00f0f1fd87d0d3f /shell/completion.zsh
parentd87390934e161ad2ae09b4dc37f4b529a84caa92 (diff)
downloadfzf-639de4c27bb29425cd2c51680fa79d53fcffc4e4.tar.gz
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.
Diffstat (limited to 'shell/completion.zsh')
-rw-r--r--shell/completion.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 623602f2..cef8afaf 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
}