{"thread":{"id":"54736","subject":"[PATCH try2] completion: zsh: fix file completion regression","startedAt":"2020-12-01T00:55:15Z","lastAt":"2020-12-01T00:55:15Z","messageCount":1,"participants":["Felipe Contreras"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"411028","messageId":"20201201005431.57963-1-felipe.contreras@gmail.com","threadId":"54736","inReplyTo":null,"subject":"[PATCH try2] completion: zsh: fix file completion regression","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2020-12-01T00:54:31Z","receivedAt":"2020-12-01T00:55:15Z","isPatch":true,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"Turns out we always need to set the ignored prefix (compset) to have\nsimilar behavior as in default Bash.\n\nThe issue can be seen with:\n\n  git show master:<tab>\n\nCommit 94b2901cfe wrongly removed it.\n\nSigned-off-by: Felipe Contreras <felipe.contreras@gmail.com>\n---\n\nThis is a regression since the last big chunk of changes.\n\n contrib/completion/git-completion.zsh | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh\nindex e0fda27f4c..6c56296997 100644\n--- a/contrib/completion/git-completion.zsh\n+++ b/contrib/completion/git-completion.zsh\n@@ -116,6 +116,7 @@ __gitcomp_file ()\n {\n \temulate -L zsh\n \n+\tcompset -P '*[=:]'\n \tcompadd -f -p \"${2-}\" -- ${(f)1} && _ret=0\n }\n \n-- \n2.29.2\n\n"}]}