Merge pull request #469 from kastiglione/rg-types
rg: Declare `types` variable before assignment
This commit is contained in:
commit
f67a6bbc44
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