浏览代码

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

Jeremy Jones 6 年之前
父节点
当前提交
547a6ce260
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/golang/golang.plugin.zsh

+ 1 - 1
plugins/golang/golang.plugin.zsh

@@ -135,7 +135,7 @@ __go_tool_complete() {
   run)
       _arguments -s -w : \
           ${build_flags[@]} \
-          '*:file:_path_files -g "*.go"'
+          '*:file:_files -g "*.go"'
       ;;
   tool)
       if (( CURRENT == 3 )); then