rg: Declare `types` variable before use
Follow-up to https://github.com/zsh-users/zsh-completions/pull/468
This commit is contained in:
parent
f662c85978
commit
1c4d9c8660
3
src/_rg
3
src/_rg
|
|
@ -111,7 +111,8 @@ _arguments -S -s : \
|
||||||
|
|
||||||
case "$state" in
|
case "$state" in
|
||||||
type)
|
type)
|
||||||
local -U types=( ${${(f)"$(_call_program types rg --type-list)"}%%:*} )
|
local -U types
|
||||||
|
types=( ${${(f)"$(_call_program types rg --type-list)"}%%:*} )
|
||||||
|
|
||||||
_describe -t types "type" types && ret=0
|
_describe -t types "type" types && ret=0
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue