#1486 - Default exit_code to 1, if it isn't set.

This commit is contained in:
w0rp 2018-04-10 09:57:21 +01:00
parent da9a005c60
commit 9d00695249

View file

@ -119,7 +119,7 @@ function! s:VimCloseCallback(channel) abort
if job_status(l:job) is# 'dead' if job_status(l:job) is# 'dead'
try try
if !empty(l:info) && has_key(l:info, 'exit_cb') if !empty(l:info) && has_key(l:info, 'exit_cb')
call ale#util#GetFunction(l:info.exit_cb)(l:job_id, l:info.exit_code) call ale#util#GetFunction(l:info.exit_cb)(l:job_id, get(l:info, 'exit_code', 1))
endif endif
finally finally
" Automatically forget about the job after it's done. " Automatically forget about the job after it's done.