driver: Avoid warn_create_global warnings

This commit is contained in:
dana 2018-12-18 22:43:04 -06:00 committed by Daniel Shahaf
parent 3dc74b5c2c
commit 55f846c673

View file

@ -28,7 +28,7 @@
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
# First of all, ensure predictable parsing. # First of all, ensure predictable parsing.
zsh_highlight__aliases=`builtin alias -Lm '[^+]*'` typeset zsh_highlight__aliases="$(builtin alias -Lm '[^+]*')"
# In zsh <= 5.2, `alias -L` emits aliases that begin with a plus sign ('alias -- +foo=42') # In zsh <= 5.2, `alias -L` emits aliases that begin with a plus sign ('alias -- +foo=42')
# them without a '--' guard, so they don't round trip. # them without a '--' guard, so they don't round trip.
# #
@ -57,9 +57,9 @@ fi
# zsh-users/zsh@48cadf4 http://www.zsh.org/mla/workers//2017/msg00034.html # zsh-users/zsh@48cadf4 http://www.zsh.org/mla/workers//2017/msg00034.html
autoload -Uz is-at-least autoload -Uz is-at-least
if is-at-least 5.4; then if is-at-least 5.4; then
zsh_highlight__pat_static_bug=false typeset -g zsh_highlight__pat_static_bug=false
else else
zsh_highlight__pat_static_bug=true typeset -g zsh_highlight__pat_static_bug=true
fi fi
# Array declaring active highlighters names. # Array declaring active highlighters names.