Actually catch all Job ID problems

This commit is contained in:
w0rp 2017-02-13 12:13:54 +00:00
parent f9815fcdef
commit a5ec5366c4

View File

@ -19,6 +19,7 @@ function! s:GetJobID(job) abort
" 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 return ch_info(job_getchannel(a:job)).id
catch
endtry endtry
" If we fail to get the channel ID for a job, just return a 0 ID. " If we fail to get the channel ID for a job, just return a 0 ID.