#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'
|
||||
try
|
||||
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
|
||||
finally
|
||||
" Automatically forget about the job after it's done.
|
||||
|
|
Reference in a new issue