Merge pull request #469 from kastiglione/rg-types

rg: Declare `types` variable before assignment
This commit is contained in:
Syohei YOSHIDA 2016-11-20 23:30:00 +09:00 committed by GitHub
commit f67a6bbc44
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
;;