diff options
author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-28 13:21:12 +0200 |
---|---|---|
committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-08-28 13:21:12 +0200 |
commit | 38b8c680cc43c123912b09fe5507aff363e34432 (patch) | |
tree | b68b5028c5271a3314471089bd4228ef23f17751 | |
parent | 766c09d335568c0c82aa2391ff1fea85e45af95f (diff) | |
download | vis-spellcheck-38b8c680cc43c123912b09fe5507aff363e34432.tar.gz |
remove fortunatly ignored -a flag from most list commands
-rw-r--r-- | spellcheck.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index b14aec2..9d8a6ed 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -6,14 +6,14 @@ spellcheck.lang = os.getenv("LANG"):sub(0,5) or "en_US" local supress_output = ">/dev/null 2>/dev/null" if os.execute("type enchant "..supress_output) then spellcheck.cmd = "enchant -d %s -a" - spellcheck.list_cmd = "enchant -l -d %s -a" -elseif os.execute("type enchant-2 "..supress_output) then + spellcheck.list_cmd = "enchant -l -d %s" +elseif os.execute("type enchant-2"..supress_output) then spellcheck.cmd = "enchant-2 -d %s -a" - spellcheck.list_cmd = "enchant-2 -l -d %s -a" -elseif os.execute("type aspell "..supress_output) then - spellcheck.cmd = "aspell -l %s -a" - spellcheck.list_cmd = "aspell list -l %s -a" -elseif os.execute("type hunspell "..supress_output) then + spellcheck.list_cmd = "enchant-2 -l -d %s" +elseif os.execute("type aspell"..supress_output) then + spellcheck.cmd = "aspell pipe -l %s" + spellcheck.list_cmd = "aspell list -l %s" +elseif os.execute("type hunspell"..supress_output) then spellcheck.cmd = "hunspell -d %s" spellcheck.list_cmd = "hunspell -l -d %s" else |