mirror of
https://github.com/dense-analysis/ale
synced 2024-12-16 11:25:36 +00:00
Actually catch all Job ID problems
This commit is contained in:
parent
f9815fcdef
commit
a5ec5366c4
@ -19,6 +19,7 @@ function! s:GetJobID(job) abort
|
||||
" job. We'll use the ID of the channel instead as the job ID.
|
||||
try
|
||||
return ch_info(job_getchannel(a:job)).id
|
||||
catch
|
||||
endtry
|
||||
|
||||
" If we fail to get the channel ID for a job, just return a 0 ID.
|
||||
|
Loading…
Reference in New Issue
Block a user