diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-22 12:01:21 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-22 12:01:21 +0000 |
commit | 074a011b0831f89252f62c3ab498c9337d4651a2 (patch) | |
tree | a2d7718629629d27817cde502ced7f623c91e4e2 /autoload | |
parent | 796fb651d646b3cc34a397c08daa3b85465929d3 (diff) | |
download | ale-074a011b0831f89252f62c3ab498c9337d4651a2.zip |
Make fixing ignore empty output better
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index c4143aa1..76cd1355 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -114,9 +114,11 @@ function! s:HandleExit(job_id, exit_code) abort " otherwise skip this job and use the input from before. " " We'll use the input from before for chained commands. - let l:input = l:chain_callback is v:null && !empty(l:job_info.output) - \ ? l:job_info.output - \ : l:job_info.input + if l:chain_callback is v:null && !empty(split(join(l:job_info.output))) + let l:input = l:job_info.output + else + let l:input = l:job_info.input + endif let l:next_index = l:chain_callback is v:null \ ? l:job_info.callback_index + 1 |