#1486 - Default exit_code to 1, if it isn't set.
This commit is contained in:
parent
da9a005c60
commit
9d00695249
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Reference in a new issue