diff options
author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-28 14:31:40 +0200 |
---|---|---|
committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-28 14:31:40 +0200 |
commit | a8212fda377d6527c7b76547aa7fb816c5cc62cb (patch) | |
tree | dbb969413badd2488dbfca51038779dd3604b538 | |
parent | 85bfeb5b9f5dc8b9f0cd504282c4bd56afc14e99 (diff) | |
download | vis-spellcheck-a8212fda377d6527c7b76547aa7fb816c5cc62cb.tar.gz |
reset last_data when enabling spellcheck to enforce new highlighting
-rw-r--r-- | spellcheck.lua | 2 |
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 |