about summary refs log tree commit diff
path: root/Functions/Prompts/promptinit
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-11-22 10:19:49 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2015-11-22 10:19:49 -0800
commit14487ff5cc0233acf4ed3398559d975e92d52d51 (patch)
tree063987cc2c743bb5ad95f6dbc6edc23b4a14defb /Functions/Prompts/promptinit
parentacbd2ca701ea6b91e3f3a710daa7e32295edc225 (diff)
downloadzsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.gz
zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.xz
zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.zip
37192: silence WARN_CREATE_GLOBAL in prompt themes
Diffstat (limited to 'Functions/Prompts/promptinit')
-rw-r--r--Functions/Prompts/promptinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index edf2d028b..587248997 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -160,7 +160,7 @@ Use prompt -h <theme> for help on specific themes.'
        for hook in chpwd precmd preexec periodic zshaddhistory zshexit; do
          add-zsh-hook -D "${hook}" "prompt_*_${hook}"
        done
-       set -A zle_highlight ${zle_highlight:#default:*}
+       typeset -ga zle_highlight=( ${zle_highlight:#default:*} )
        (( ${#zle_highlight} )) || unset zle_highlight
 
        prompt_$1_setup "$@[2,-1]" && prompt_theme=( "$@" )