aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-05-10 08:18:16 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-05-10 08:18:16 +0200
commit136a0c65537c08c0b745480880333d5b3b945737 (patch)
treeceacd5064c31edef388de8b763500f75120dd5ec
parentb435a8beb09ccde9c469f7e47d6c12e5113030c6 (diff)
downloadvis-spellcheck-136a0c65537c08c0b745480880333d5b3b945737.tar.gz
vis-spellcheck-136a0c65537c08c0b745480880333d5b3b945737.zip
always use the empty string to reset the cached data
-rw-r--r--spellcheck.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index d8094cf..bfa8430 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -453,7 +453,7 @@ vis:option_register('spelllang', 'string', function(value)
-- force new highlight for full viewport
last_viewport = nil
-- force new highlight for syntax aware
- last_data = nil
+ last_data = ''
return true
end, 'The language used for spellchecking')