mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-19 02:01:03 +08:00
fix: Remove explicit calls to file path in astyle
This commit is contained in:
1 parent
75723e4522
commit
0e6578cf65
2 files changed
+7
-6
No files matched your search
@@ -21,10 +21,11 @@ function! ale#fixers#astyle#Fix(buffer) abort
|
||||
let l:executable = ale#fixers#astyle#Var(a:buffer, 'executable')
|
||||
let l:filename = ale#Escape(bufname(a:buffer))
|
||||
let l:options = ale#fixers#astyle#Var(a:buffer, 'options')
|
||||
let l:command = ' --stdin=' . l:filename
|
||||
let l:command = ' --stdin='
|
||||
|
||||
return {
|
||||
\ 'command': ale#Escape(l:executable) . l:command
|
||||
\ 'command': ale#Escape(l:executable)
|
||||
\ . (empty(l:options) ? '' : ' --project=' . l:options)
|
||||
\ . l:command
|
||||
\}
|
||||
endfunction
|
||||
Reference in new issue
Block a user