mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-05 06:34:21 +08:00
Make fixing ignore empty output better
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user