mirror of
https://github.com/dense-analysis/ale
synced 2025-01-05 13:39:58 +00:00
Prevent some stupid exceptions
This commit is contained in:
parent
5041246c0e
commit
bdbf36991d
@ -18,7 +18,11 @@ function! s:GetJobID(job) abort
|
|||||||
" In Vim 8, the job is a special variable, and we open a channel for each
|
" In Vim 8, the job is a special variable, and we open a channel for each
|
||||||
" job. We'll use the ID of the channel instead as the job ID.
|
" job. We'll use the ID of the channel instead as the job ID.
|
||||||
try
|
try
|
||||||
return ch_info(job_getchannel(a:job)).id
|
let l:channel_info = ch_info(job_getchannel(a:job))
|
||||||
|
|
||||||
|
if !empty(l:channel_info)
|
||||||
|
return l:channel_info.id
|
||||||
|
endif
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user