summaryrefslogtreecommitdiffstats
path: root/Completion/Base
diff options
context:
space:
mode:
authordana <dana@dana.is>2026-07-08 16:39:46 -0500
committerdana <dana@dana.is>2026-07-11 18:00:57 -0500
commit2149711ec11d7512b3ba1727148853f52cde8f64 (patch)
treeb39f8fbe16c6324703e551d577411d3552bf4821 /Completion/Base
parentunposted: completion: fix some wrongly ordered globquals (diff)
downloadzsh-2149711ec11d7512b3ba1727148853f52cde8f64.tar
zsh-2149711ec11d7512b3ba1727148853f52cde8f64.tar.gz
zsh-2149711ec11d7512b3ba1727148853f52cde8f64.tar.bz2
zsh-2149711ec11d7512b3ba1727148853f52cde8f64.tar.lz
zsh-2149711ec11d7512b3ba1727148853f52cde8f64.tar.xz
zsh-2149711ec11d7512b3ba1727148853f52cde8f64.tar.zst
zsh-2149711ec11d7512b3ba1727148853f52cde8f64.zip
54926: _main_complete: mark some parameters as global
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Core/_main_complete14
1 files changed, 7 insertions, 7 deletions
diff --git a/Completion/Base/Core/_main_complete b/Completion/Base/Core/_main_complete
index 11b7972de..b0c2db5b7 100644
--- a/Completion/Base/Core/_main_complete
+++ b/Completion/Base/Core/_main_complete
@@ -305,7 +305,7 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then
elif [[ -n "$_menu_style[(r)select=long*]" ]]; then
if [[ tmp -gt LINES ]]; then
zmodload -i zsh/complist
- MENUSELECT=00
+ typeset -g MENUSELECT=00
fi
fi
if [[ "$MENUSELECT" != 00 ]]; then
@@ -328,19 +328,19 @@ if [[ $compstate[old_list] = keep || nm -gt 1 ]]; then
done
zmodload -i zsh/complist
- MENUSELECT="$min"
+ typeset -g MENUSELECT="$min"
else
unset MENUSELECT
fi
fi
if [[ -n "$MENUSELECT" ]]; then
if [[ -n "$_menu_style[(r)interactive*]" ]]; then
- MENUMODE=interactive
+ typeset -g MENUMODE=interactive
elif [[ -n "$_menu_style[(r)search*]" ]]; then
if [[ -n "$_menu_style[(r)*backward*]" ]]; then
- MENUMODE=search-backward
+ typeset -g MENUMODE=search-backward
else
- MENUMODE=search-forward
+ typeset -g MENUMODE=search-forward
fi
else
unset MENUMODE
@@ -385,12 +385,12 @@ fi
# Stuff we always do to clean up.
if [[ "$compstate[old_list]" = keep ]]; then
if [[ $_saved_colors_set = 1 ]]; then
- ZLS_COLORS="$_saved_colors"
+ typeset -g ZLS_COLORS="$_saved_colors"
else
unset ZLS_COLORS
fi
elif (( $#_comp_colors )); then
- ZLS_COLORS="${(j.:.)_comp_colors}"
+ typeset -g ZLS_COLORS="${(j.:.)_comp_colors}"
else
unset ZLS_COLORS
fi