diff options
| author | Nomarian <nomarian@outlook.com> | 2025-10-09 10:24:35 -0400 |
|---|---|---|
| committer | Nomarian <nomarian@outlook.com> | 2025-10-09 10:24:35 -0400 |
| commit | 54b736e479f29a6e95b2fe6a865800265f0e9b31 (patch) | |
| tree | 93263c1955fb9d233ce7c256d399b03a4fe29316 /spellcheck.lua | |
| parent | 97f9e91b137f7e652cf36cc9eec4783ae7acfbb3 (diff) | |
| download | vis-spellcheck-54b736e479f29a6e95b2fe6a865800265f0e9b31.tar.gz vis-spellcheck-54b736e479f29a6e95b2fe6a865800265f0e9b31.zip | |
Single return statement on get_lang()
Diffstat (limited to 'spellcheck.lua')
| -rw-r--r-- | spellcheck.lua | 7 |
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' |
