Use 'typeset -g' to avoid warning when WARN_CREATE_GLOBAL is set. (#36)

This commit is contained in:
Francisco Borges 2022-06-11 11:10:30 +02:00 committed by GitHub
parent 370106d95d
commit 721be2a935
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null || {
print -r -- "$@" >>! /tmp/reply
}
ZSH_HIGHLIGHT_MAXLENGTH=10000
typeset -g ZSH_HIGHLIGHT_MAXLENGTH=10000
# Load zsh/parameter module if available
zmodload zsh/parameter 2>/dev/null