summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2020-10-27 20:06:57 -0600
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-28 14:30:59 -0700
commit94b2901cfe23c077207a563e544fd8dc11a832ce (patch)
treea1fe497c5d0c9dba1d15d1de56ac347c5882ae9b
parentcompletion: zsh: add missing direct_append (diff)
downloadtgif-94b2901cfe23c077207a563e544fd8dc11a832ce.tar.xz
completion: zsh: fix splitting of words
Files don't need to be split by '=:', words do. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--contrib/completion/git-completion.zsh3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index c5b875993f..d9ce5e1742 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -124,6 +124,7 @@ __gitcomp_nl_append ()
emulate -L zsh
local IFS=$'\n'
+ compset -P '*[=:]'
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0
}
@@ -132,7 +133,6 @@ __gitcomp_file_direct ()
emulate -L zsh
local IFS=$'\n'
- compset -P '*[=:]'
compadd -f -- ${=1} && _ret=0
}
@@ -141,7 +141,6 @@ __gitcomp_file ()
emulate -L zsh
local IFS=$'\n'
- compset -P '*[=:]'
compadd -p "${2-}" -f -- ${=1} && _ret=0
}