summaryrefslogtreecommitdiff
path: root/plugins/rbw/rbw.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rbw/rbw.plugin.zsh')
-rw-r--r--plugins/rbw/rbw.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/rbw/rbw.plugin.zsh b/plugins/rbw/rbw.plugin.zsh
index 3825be7a6..56683ad06 100644
--- a/plugins/rbw/rbw.plugin.zsh
+++ b/plugins/rbw/rbw.plugin.zsh
@@ -11,7 +11,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 `rbw`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_rbw" ]]; then
- declare -A _comps
+ typeset -g -A _comps
autoload -Uz _rbw
_comps[rbw]=_rbw
fi