Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH v2 03/14] _git: make git submodule <cmd> completion work



From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>

The -A parameter in the main completion stopped completion
in the subcommands from working. Remove it.
---
 Completion/Unix/Command/_git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index faa8df8..0f4ead3 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1491,7 +1491,7 @@ _git-submodule () {
   local curcontext=$curcontext state line ret=1
   declare -A opt_args
 
-  _arguments -C -A '-*' \
+  _arguments -C \
     '(-q --quiet)'{-q,--quiet}'[suppress all output]' \
     ': :->command' \
     '*:: :->option-or-argument' && ret=0
-- 
1.8.2.2



Messages sorted by: Reverse Date, Date, Thread, Author