mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
rg: Declare types variable before use
Follow-up to https://github.com/zsh-users/zsh-completions/pull/468
This commit is contained in:
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user