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'