From 1c88317381c530bc83a20e6f3dabe16bebe31b6f Mon Sep 17 00:00:00 2001 From: Marlon Richert Date: Thu, 7 Oct 2021 10:29:30 +0300 Subject: [PATCH] Suppress a warning Fixes #357. --- functions/widget/.autocomplete.complete-word.completion-widget | 1 + functions/widget/.autocomplete.complete-word.post | 1 + 2 files changed, 2 insertions(+) diff --git a/functions/widget/.autocomplete.complete-word.completion-widget b/functions/widget/.autocomplete.complete-word.completion-widget index 0f86f3ac..c1c53a1d 100644 --- a/functions/widget/.autocomplete.complete-word.completion-widget +++ b/functions/widget/.autocomplete.complete-word.completion-widget @@ -1,5 +1,6 @@ #!/bin/zsh zmodload -F zsh/terminfo p:terminfo +local -a match=() mbegin=() mend=() # `zstyle` for some reason assigns these. local -P key_name= case $KEYS in diff --git a/functions/widget/.autocomplete.complete-word.post b/functions/widget/.autocomplete.complete-word.post index 83033709..71fa9fc9 100644 --- a/functions/widget/.autocomplete.complete-word.post +++ b/functions/widget/.autocomplete.complete-word.post @@ -1,4 +1,5 @@ #autoload +local -a match=() mbegin=() mend=() # `zstyle` for some reason assigns these. unset MENUSELECT 'compstate[list]' compstate[insert]=