{"thread":{"id":"54634","subject":"[PATCH] completion: zsh: fix file completion with prefix","startedAt":"2020-11-12T22:50:04Z","lastAt":"2020-11-12T22:50:04Z","messageCount":1,"participants":["Felipe Contreras"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"409835","messageId":"20201112224950.1528143-1-felipe.contreras@gmail.com","threadId":"54634","inReplyTo":null,"subject":"[PATCH] completion: zsh: fix file completion with prefix","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2020-11-12T22:49:50Z","receivedAt":"2020-11-12T22:50:04Z","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"}]}