mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
driver, main: Add -z to autoload calls
This commit is contained in:
parent
15e288a25c
commit
2c0c75a8ee
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue