summaryrefslogtreecommitdiff
path: root/plugins/helm/helm.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/helm/helm.plugin.zsh')
-rw-r--r--plugins/helm/helm.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/helm/helm.plugin.zsh b/plugins/helm/helm.plugin.zsh
index 472c1c9dd..c6b91693a 100644
--- a/plugins/helm/helm.plugin.zsh
+++ b/plugins/helm/helm.plugin.zsh
@@ -14,7 +14,7 @@ command mkdir -p "$ZSH_CACHE_DIR/completions"
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `helm`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_helm" ]]; then
- declare -A _comps
+ typeset -g -A _comps
autoload -Uz _helm
_comps[helm]=_helm
fi