diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 9ff3a7f..5f2659e 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -306,6 +306,7 @@ _zsh_highlight_preexec_hook() typeset -gi _ZSH_HIGHLIGHT_PRIOR_CURSOR= } autoload -U add-zsh-hook +add-zsh-hook -d preexec _zsh_highlight_preexec_hook add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null || { echo 'zsh-syntax-highlighting: failed loading add-zsh-hook.' >&2 }