aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-11-27 18:25:34 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-11-27 18:25:34 +0100
commit74b9940faa3f66a3dfbf759188faf0016cb8ed39 (patch)
treec92206c2391828b12345d9894dc56f68069a2cb2
parentf1c220802abcbb10a139ef99c98c803c10ca74e5 (diff)
downloadvis-spellcheck-master.tar.gz
use spelling_language in spelllang optionmaster
Fixes: f1c220802abcbb10a139ef99c98c803c10ca74e5
-rw-r--r--spellcheck.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index c0082c7..3cbf619 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -450,7 +450,7 @@ vis:map(vis.modes.NORMAL, '<C-w>a', function()
end, 'Add word to user dictionary')
vis:option_register('spelllang', 'string', function(value)
- vis.win.file.spell_language = value
+ vis.win.file.spelling_language = value
vis:info('Spellchecking language is now ' .. value)
-- force new highlight for full viewport
last_viewport = nil