aboutsummaryrefslogtreecommitdiffstats
path: root/spellcheck.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spellcheck.lua')
-rw-r--r--spellcheck.lua2
1 files changed, 2 insertions, 0 deletions
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