rg: Declare `types` variable before use

Follow-up to https://github.com/zsh-users/zsh-completions/pull/468
This commit is contained in:
Dave Lee 2016-11-18 10:58:36 -08:00
parent f662c85978
commit 1c4d9c8660
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ _arguments -S -s : \
case "$state" in
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
;;