mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-11 09:08:32 +08:00
Handle jobstart() returning -1 in the NeoVim 0.2.0, just in case
This commit is contained in:
@@ -244,7 +244,7 @@ function! ale#job#Start(command, options) abort
|
|||||||
let l:job_id = ale#job#ParseVim8ProcessID(string(l:job_info.job))
|
let l:job_id = ale#job#ParseVim8ProcessID(string(l:job_info.job))
|
||||||
endif
|
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.
|
" 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
|
let s:job_map[l:job_id] = l:job_info
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user