driver, main: Add -z to autoload calls

This commit is contained in:
Matthew Martin
2018-03-06 11:31:50 -06:00
parent 15e288a25c
commit 2c0c75a8ee
2 changed files with 3 additions and 3 deletions

View File

@@ -1074,7 +1074,7 @@ _zsh_highlight_main__precmd_hook() {
_zsh_highlight_main__command_type_cache=()
}
autoload -U add-zsh-hook
autoload -Uz add-zsh-hook
if add-zsh-hook precmd _zsh_highlight_main__precmd_hook 2>/dev/null; then
# Initialize command type cache
typeset -gA _zsh_highlight_main__command_type_cache