From 73ec83d055a62019c41e699981e841e395219cca Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 28 Aug 2017 15:25:18 +0100 Subject: [PATCH] Handle jobstart() returning -1 in the NeoVim 0.2.0, just in case --- 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 a52e57bc..1d8b6760 100644 --- a/autoload/ale/job.vim +++ b/autoload/ale/job.vim @@ -244,7 +244,7 @@ function! ale#job#Start(command, options) abort let l:job_id = ale#job#ParseVim8ProcessID(string(l:job_info.job)) endif - if l:job_id + if l:job_id > 0 " Store the job in the map for later only if we can get the ID. let s:job_map[l:job_id] = l:job_info endif