remove hook on sourcing again

This commit is contained in:
Stanislav Seletskiy 2016-04-22 11:28:15 +06:00
parent d4f8edc9f3
commit 5e26da7390

View File

@ -306,6 +306,7 @@ _zsh_highlight_preexec_hook()
typeset -gi _ZSH_HIGHLIGHT_PRIOR_CURSOR= typeset -gi _ZSH_HIGHLIGHT_PRIOR_CURSOR=
} }
autoload -U add-zsh-hook 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 || { add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null || {
echo 'zsh-syntax-highlighting: failed loading add-zsh-hook.' >&2 echo 'zsh-syntax-highlighting: failed loading add-zsh-hook.' >&2
} }