mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Avoid possible hang on failure to start job
References: https://github.com/tpope/vim-fugitive/issues/1751
This commit is contained in:
@@ -2663,7 +2663,7 @@ function! s:RunTick(job) abort
|
||||
if type(a:job) == v:t_number
|
||||
return jobwait([a:job], 1)[0] == -1
|
||||
elseif type(a:job) == 8
|
||||
let running = ch_status(a:job) !=# 'closed' || job_status(a:job) ==# 'run'
|
||||
let running = ch_status(a:job) !~# '^closed$\|^failed$' || job_status(a:job) ==# 'run'
|
||||
sleep 1m
|
||||
return running
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user