Fix highlight cache invalidation
To work better with recent version of zsh-syntax-highlighting.
This commit is contained in:
parent
34c01f6259
commit
4b6512d1e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue