From a8212fda377d6527c7b76547aa7fb816c5cc62cb Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 28 Aug 2020 14:31:40 +0200 Subject: reset last_data when enabling spellcheck to enforce new highlighting --- spellcheck.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spellcheck.lua b/spellcheck.lua index 252fbf1..3d2888b 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -241,6 +241,8 @@ local enable_spellcheck = function() local old_lex_func = lexer.lex wrapped_lex_funcs[vis.win] = old_lex_func lexer.lex = wrap_lex_func(old_lex_func) + -- reset last data to enforce new highlighting + last_data = "" return end end -- cgit v1.2.3