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:<tab> Commit 94b2901cfe wrongly removed it. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
Nov 30, 2020 at 18:54 UTC
c5dd0c861ab0db5ad1ecaf9508bdddca83c5cc6e
1 file changed
+1
contrib/completion/git-completion.zsh
+1
@@ -116,6 +116,7 @@ __gitcomp_file ()
116
{
117
emulate -L zsh
118
119
+ compset -P '*[=:]'
120
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
121
}
122