index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Wallace <danielwallace@gtmanfred.com> | 2013-03-18 01:46:55 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-26 15:55:51 +1000 |
commit | cd6ca88c49ce795d4d5a36454aaf8adb955114f8 (patch) | |
tree | bd7b35efeb61dbadd1742d84bff6cef1ac3b5679 /contrib/zsh_completion.in | |
parent | 3eee3d67af2cb9b4375285c50faa344954223cdc (diff) |
-rw-r--r-- | contrib/zsh_completion.in | 3 |
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in index 8ad4a632..5096b8f7 100644 --- a/contrib/zsh_completion.in +++ b/contrib/zsh_completion.in @@ -118,7 +118,6 @@ _pacman_action_help() { _pacman_action_none() { _arguments -s : \ "$_pacman_opts_commands[@]" - return 0 } # handles --query subcommand @@ -320,6 +319,7 @@ _pacman_get_command() { # main dispatcher _pacman_zsh_comp() { local -a args cmds; + local tmp args=( ${${${(M)words:#-*}#-}:#-*} ) for tmp in $words; do cmds+=("${${_pacman_opts_commands[(r)*$tmp\[*]%%\[*}#*\)}") @@ -434,7 +434,6 @@ _pacman_zsh_comp() { esac ;; esac - return 0 } _key_shortopts=( |