mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-04 00:52:50 +08:00
feat: Use stdin/redirection for astyle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user