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:
parent
0f05bfc340
commit
f9280a0523
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue