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>
This commit is contained in:
Daniel Wallace 2013-04-05 19:31:57 -04:00 committed by Allan McRae
parent 0f05bfc340
commit f9280a0523

View file

@ -202,7 +202,7 @@ _pacman_action_sync() {
_arguments -s : \ _arguments -s : \
{\*-c,\*--clean}'[Remove old packages from cache]' \ {\*-c,\*--clean}'[Remove old packages from cache]' \
"$_pacman_opts_common[@]" \ "$_pacman_opts_common[@]" \
"$_pacman_opts_sync_modifiers[@]" \ "$_pacman_opts_sync_modifiers[@]"
;; ;;
sync_group) sync_group)
_arguments -s : \ _arguments -s : \
@ -383,6 +383,12 @@ _pacman_zsh_comp() {
"$_pacman_opts_sync_modifiers[@]" \ "$_pacman_opts_sync_modifiers[@]" \
'*:package group:_pacman_completions_all_groups' '*:package group:_pacman_completions_all_groups'
;; ;;
S*s*)
_arguments -s : \
"$_pacman_opts_common[@]" \
"$_pacman_opts_sync_modifiers[@]" \
'*:search text: '
;;
S*) S*)
_pacman_action_sync _pacman_action_sync
;; ;;