Handle jobstart() returning -1 in the NeoVim 0.2.0, just in case

This commit is contained in:
w0rp 2017-08-28 15:25:18 +01:00
parent 908e94622e
commit 73ec83d055
1 changed files with 1 additions and 1 deletions

View File

@ -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