Skip to content

Commit c5dd0c8

Browse files
felipecgitster
authored andcommitted
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 94b2901 wrongly removed it. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent af806a2 commit c5dd0c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ __gitcomp_file ()
116116
{
117117
emulate -L zsh
118118

119+
compset -P '*[=:]'
119120
compadd -f -p "${2-}" -- ${(f)1} && _ret=0
120121
}
121122

0 commit comments

Comments
 (0)