feat: Use stdin/redirection for astyle

This commit is contained in:
jhlink
2020-07-26 20:51:41 -04:00
parent a9799fe90e
commit b25bb64a4d
2 changed files with 11 additions and 10 deletions

View File

@@ -18,10 +18,10 @@ endfunction
function! ale#fixers#astyle#Fix(buffer) abort
let l:executable = ale#fixers#astyle#Var(a:buffer, 'executable')
let l:command = ' %t'
let l:filename = ale#Escape(bufname(a:buffer))
let l:command = ' --stdin=' . l:filename
return {
\ 'command': ale#Escape(l:executable) . l:command,
\ 'read_temporary_file': 1,
\ 'command': ale#Escape(l:executable) . l:command
\}
endfunction