summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-03-11 09:15:29 +0000
committerGitHub <noreply@github.com>2019-03-11 09:15:29 +0000
commitf0da35b95807c4fa88ae3ccfaa14fbf4a7bd4d2c (patch)
tree586db99c7c8f3f95abee61c1991d9b1035aecde2
parenta22ab78dd758da2d17bef01de5bad1f394911e9d (diff)
parentd9a12348d09cf6d845c554051f3e30a17cf71b25 (diff)
downloadale-f0da35b95807c4fa88ae3ccfaa14fbf4a7bd4d2c.zip
Merge pull request #2349 from oblitum/fix-missing-languagetool-file-argument
Fix passing file to languagetool
-rw-r--r--autoload/ale/handlers/languagetool.vim2
-rw-r--r--test/command_callback/test_languagetool_command_callback.vader4
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/handlers/languagetool.vim b/autoload/ale/handlers/languagetool.vim
index aaad4c99..10e049df 100644
--- a/autoload/ale/handlers/languagetool.vim
+++ b/autoload/ale/handlers/languagetool.vim
@@ -10,7 +10,7 @@ endfunction
function! ale#handlers#languagetool#GetCommand(buffer) abort
let l:executable = ale#handlers#languagetool#GetExecutable(a:buffer)
- return ale#Escape(l:executable) . ' --autoDetect '
+ return ale#Escape(l:executable) . ' --autoDetect %s'
endfunction
function! ale#handlers#languagetool#HandleOutput(buffer, lines) abort
diff --git a/test/command_callback/test_languagetool_command_callback.vader b/test/command_callback/test_languagetool_command_callback.vader
index 1b5f0e00..a79662b9 100644
--- a/test/command_callback/test_languagetool_command_callback.vader
+++ b/test/command_callback/test_languagetool_command_callback.vader
@@ -6,10 +6,10 @@ After:
Execute(The default command should be correct):
AssertLinter 'languagetool', ale#Escape('languagetool')
- \ . ' --autoDetect '
+ \ . ' --autoDetect %s'
Execute(Should be able to set a custom executable):
let g:ale_languagetool_executable = 'foobar'
AssertLinter 'foobar' , ale#Escape('foobar')
- \ . ' --autoDetect '
+ \ . ' --autoDetect %s'