Merge pull request #2349 from oblitum/fix-missing-languagetool-file-argument

Fix passing file to languagetool
This commit is contained in:
w0rp 2019-03-11 09:15:29 +00:00 committed by GitHub
commit f0da35b958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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'