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