547a6ce260362b06e86a9c366dc29984c0954124

Author
Jeremy Jones <jeremy@jeremyjones.tech>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

fix path completion issue with go run subcommand (#6929)

Diff

 1diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
 2index d9d4506908f1618cef7994e21dc0bafb160515a5..d5c78ce6c2fd212fa7e8db29edf55d510b97a5ab 100644
 3--- a/plugins/golang/golang.plugin.zsh
 4+++ b/plugins/golang/golang.plugin.zsh
 5@@ -135,7 +135,7 @@ __go_tool_complete() {
 6   run)
 7       _arguments -s -w : \
 8           ${build_flags[@]} \
 9-          '*:file:_path_files -g "*.go"'
10+          '*:file:_files -g "*.go"'
11       ;;
12   tool)
13       if (( CURRENT == 3 )); then