diff --git a/autoload/ale/fixers/cmakeformat.vim b/autoload/ale/fixers/cmakeformat.vim index f40ed6ed..dcc29cf3 100644 --- a/autoload/ale/fixers/cmakeformat.vim +++ b/autoload/ale/fixers/cmakeformat.vim @@ -10,9 +10,7 @@ function! ale#fixers#cmakeformat#Fix(buffer) abort return { \ 'command': ale#Escape(l:executable) - \ . ' -i ' \ . (empty(l:options) ? '' : ' ' . l:options) - \ . ' %t', - \ 'read_temporary_file': 1, + \ . ' -' \} endfunction diff --git a/test/fixers/test_cmakeformat_fixer_callback.vader b/test/fixers/test_cmakeformat_fixer_callback.vader index 9263d6fa..545fe067 100644 --- a/test/fixers/test_cmakeformat_fixer_callback.vader +++ b/test/fixers/test_cmakeformat_fixer_callback.vader @@ -18,10 +18,8 @@ Execute(The cmakeformat callback should return the correct default values): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') - \ . ' -i ' - \ . ' %t', + \ . ' -' \ }, \ ale#fixers#cmakeformat#Fix(bufnr('')) @@ -31,10 +29,8 @@ Execute(The cmakeformat callback should include custom cmakeformat options): AssertEqual \ { - \ 'read_temporary_file': 1, \ 'command': ale#Escape('xxxinvalid') - \ . ' -i ' \ . ' ' . g:ale_cmake_cmakeformat_options - \ . ' %t', + \ . ' -', \ }, \ ale#fixers#cmakeformat#Fix(bufnr(''))