From 1c4d9c86601d73c5343d98647c77bcda848ebb3a Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Fri, 18 Nov 2016 10:58:36 -0800 Subject: [PATCH] rg: Declare `types` variable before use Follow-up to https://github.com/zsh-users/zsh-completions/pull/468 --- src/_rg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_rg b/src/_rg index 68a36cf..b32ef97 100644 --- a/src/_rg +++ b/src/_rg @@ -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 ;;