mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-11 09:08:32 +08:00
#1486 - Default exit_code to 1, if it isn't set.
This commit is contained in:
@@ -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 New Issue
Block a user