Actually catch all Job ID problems

This commit is contained in:
w0rp 2017-02-13 12:13:54 +00:00
parent f9815fcdef
commit a5ec5366c4
1 changed files with 1 additions and 0 deletions

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