remove hook on sourcing again
This commit is contained in:
parent
d4f8edc9f3
commit
5e26da7390
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user