From 55f846c673661bde03ef97333be7889f54079c7b Mon Sep 17 00:00:00 2001 From: dana Date: Tue, 18 Dec 2018 22:43:04 -0600 Subject: [PATCH] driver: Avoid warn_create_global warnings --- zsh-syntax-highlighting.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 4caf3a8..dc85426 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -28,7 +28,7 @@ # ------------------------------------------------------------------------------------------------- # 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') # 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 autoload -Uz is-at-least if is-at-least 5.4; then - zsh_highlight__pat_static_bug=false + typeset -g zsh_highlight__pat_static_bug=false else - zsh_highlight__pat_static_bug=true + typeset -g zsh_highlight__pat_static_bug=true fi # Array declaring active highlighters names.