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

[PATCH 03/16] _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 c921d8f..3eff9f8 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1483,7 +1483,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