From 4b6512d1e889f8cdb04f2118f253d635e9117c23 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 16 May 2015 20:35:13 +0200 Subject: [PATCH] Fix highlight cache invalidation To work better with recent version of zsh-syntax-highlighting. --- autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autosuggestions.zsh b/autosuggestions.zsh index ed9390c..a335193 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -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