From 9d006952497ec226e87d52dc0f8e9e408138f63b Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 10 Apr 2018 09:57:21 +0100 Subject: [PATCH] #1486 - Default exit_code to 1, if it isn't set. --- autoload/ale/job.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/job.vim b/autoload/ale/job.vim index 2909dab4..2711e99f 100644 --- a/autoload/ale/job.vim +++ b/autoload/ale/job.vim @@ -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.