aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spellcheck.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 94b0f57..c0082c7 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -7,8 +7,8 @@ if not spellcheck.default_lang:match('^[a-z][a-z]_[A-Z][A-Z]$') then
end
spellcheck.get_lang = function()
- if vis.win.file.spell_language then
- return vis.win.file.spell_language
+ if vis.win.file.spelling_language then
+ return vis.win.file.spelling_language
else
return spellcheck.default_lang
end