diff options
author | Daniel Wallace <danielwallace@gtmanfred.com> | 2013-04-05 19:31:57 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-04-06 13:16:05 +1000 |
commit | f9280a0523d0c49039a0ad27718701c20d874ec3 (patch) | |
tree | b29d067558d7b8b11d1d710dbd6e49bd2f8b41e8 | |
parent | 0f05bfc340891ed6649168c888bb7c598d7f0d58 (diff) |
zsh completion: make sure -Ss works
if you put a type in pacman -Ss <regex> it doesn't work because it never
passes through they pointer ->sync_search to set $state. All of the
other iterations like this have a case, add one for -S*s*
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | contrib/zsh_completion.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in index f9d11063..9edcdfaf 100644 --- a/contrib/zsh_completion.in +++ b/contrib/zsh_completion.in @@ -202,7 +202,7 @@ _pacman_action_sync() { _arguments -s : \ {\*-c,\*--clean}'[Remove old packages from cache]' \ "$_pacman_opts_common[@]" \ - "$_pacman_opts_sync_modifiers[@]" \ + "$_pacman_opts_sync_modifiers[@]" ;; sync_group) _arguments -s : \ @@ -383,6 +383,12 @@ _pacman_zsh_comp() { "$_pacman_opts_sync_modifiers[@]" \ '*:package group:_pacman_completions_all_groups' ;; + S*s*) + _arguments -s : \ + "$_pacman_opts_common[@]" \ + "$_pacman_opts_sync_modifiers[@]" \ + '*:search text: ' + ;; S*) _pacman_action_sync ;; |