From 2606e51b6a1a83a981bac203e86828ac4f1fbcb8 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Thu, 22 Dec 2016 14:22:02 +0900 Subject: [PATCH] Fix path completion for completing go files in subdirectories --- src/_go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_go b/src/_go index 2f278b1..0a9b6a0 100644 --- a/src/_go +++ b/src/_go @@ -177,7 +177,7 @@ _go() { _arguments \ ${build_flags[@]} \ '-exec[invoke the binary using xprog]:xporg' \ - '*:file:_path_files -g "*.go"' + '*:file:_files -g "*.go(-.)"' ;; test) @@ -330,7 +330,7 @@ _go() { '-wb[enable write barrier (default 1)]' \ '-x[debug lexer]' \ '-y[debug declarations in canned imports (with -d)]' \ - '*:file:_path_files -g "*.go"' + '*:file:_files -g "*.go(-.)"' ;; cover) @@ -345,7 +345,7 @@ _go() { _arguments \ '-o[file for output]:file' \ '-var=[name of coverage variable to generate]:var' \ - '*:file:_path_files -g "*.go"' + '*:file:_files -g "*.go(-.)"' ;; doc)