Skip to content

Commit 5721b04

Browse files
committed
bugfix for ts jobpid exec error of E900
1 parent 53be268 commit 5721b04

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/easycomplete/job.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,11 @@ function! s:job_pid(jobid) abort
330330

331331
let l:jobinfo = s:jobs[a:jobid]
332332
if l:jobinfo.type == s:job_type_nvimjob
333-
return jobpid(a:jobid)
333+
try
334+
return jobpid(a:jobid)
335+
catch /E900/
336+
return 0
337+
endtry
334338
elseif l:jobinfo.type == s:job_type_vimjob
335339
let l:vimjobinfo = s:job_info(a:jobid)
336340
if type(l:vimjobinfo) == type({}) && has_key(l:vimjobinfo, 'process')

0 commit comments

Comments
 (0)