aboutsummaryrefslogtreecommitdiff
path: root/spellcheck.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spellcheck.lua')
-rw-r--r--spellcheck.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 31b3387..90ba907 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -8,13 +8,13 @@ local supress_stderr = " 2>/dev/null"
local supress_output = supress_stdout .. supress_stderr
if os.execute("type enchant"..supress_output) then
spellcheck.cmd = "enchant -d %s -a"
- spellcheck.list_cmd = "enchant -l -d %s -a"
+ 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"
+ spellcheck.list_cmd = "enchant-2 -l -d %s"
elseif os.execute("type aspell"..supress_output) then
- spellcheck.cmd = "aspell -l %s -a"
- spellcheck.list_cmd = "aspell list -l %s -a"
+ 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"