From: Felipe Contreras Date: Tue, 1 Dec 2020 00:54:31 +0000 (-0600) Subject: completion: zsh: fix file completion regression X-Git-Tag: v2.30.0-rc0~11^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5dd0c861ab0db5ad1ecaf9508bdddca83c5cc6e;p=thirdparty%2Fgit.git completion: zsh: fix file completion regression Turns out we always need to set the ignored prefix (compset) to have similar behavior as in default Bash. The issue can be seen with: git show master: Commit 94b2901cfe wrongly removed it. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index e0fda27f4c..6c56296997 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -116,6 +116,7 @@ __gitcomp_file () { emulate -L zsh + compset -P '*[=:]' compadd -f -p "${2-}" -- ${(f)1} && _ret=0 }