Fix highlight cache invalidation

To work better with recent version of zsh-syntax-highlighting.
This commit is contained in:
Jakub Jirutka 2015-05-16 20:35:13 +02:00
parent 34c01f6259
commit 4b6512d1e8

View File

@ -250,7 +250,7 @@ autosuggest-accept-suggestion() {
autosuggest-invalidate-highlight-cache() {
# invalidate the buffer for zsh-syntax-highlighting
_ZSH_HIGHLIGHT_PRIOR_BUFFER=''
_zsh_highlight_autosuggest_highlighter_cache=()
}
zle -N autosuggest-toggle