aboutsummaryrefslogtreecommitdiff
path: root/spellcheck.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spellcheck.lua')
-rw-r--r--spellcheck.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index fd8d0fe..72e92b3 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -9,11 +9,11 @@ end
spellcheck.spelling_autoenable = false
spellcheck.get_lang = function()
- if vis.win.file.spelling_language then
- return vis.win.file.spelling_language
- else
- return spellcheck.default_lang
- end
+ if vis.win and vis.win.file.spelling_language then
+ return vis.win.file.spelling_language
+ else
+ return spellcheck.default_lang
+ end
end
local supress_stdout = ' >/dev/null'