diff options
author | dana <dana@dana.is> | 2018-06-23 18:53:45 -0500 |
---|---|---|
committer | dana <dana@dana.is> | 2018-06-23 18:53:45 -0500 |
commit | 5019336110b4ca8507c13efd991db3ef0379f285 (patch) | |
tree | 15c55677fcc403f2fe7f60143c3f41eb1e99bedd /Completion | |
parent | 03b2cd1bb013212d1f6c2b897156ac87b455c2ee (diff) | |
download | zsh-5019336110b4ca8507c13efd991db3ef0379f285.tar.gz zsh-5019336110b4ca8507c13efd991db3ef0379f285.tar.xz zsh-5019336110b4ca8507c13efd991db3ef0379f285.zip |
43088: Fix wajig sub-command completion
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Debian/Command/_wajig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Debian/Command/_wajig b/Completion/Debian/Command/_wajig index 26d08cfd7..630507e67 100644 --- a/Completion/Debian/Command/_wajig +++ b/Completion/Debian/Command/_wajig @@ -14,7 +14,8 @@ _arguments -C -s \ case $state in cmds) - cmds=( ${${(M)${(f)"$(wajig commands 2>/dev/null)"}:# [^-]*}/(#b) ([^ ]#) #(*)/$match[1]:$match[2]:l} ) + cmds=( ${(f)"$( _call_program commands $words[1] commands )"} ) + cmds=( ${(@)cmds/(#b)([^ ]##) ##(?)(*)/$match[1]:${match[2]:l}${match[3]//:/\\:}} ) _describe -t commands 'wajig command' cmds && ret=0 ;; |