Merge branch 'master' into auto_update_neovim

This commit is contained in:
Akira Hasegawa 2021-10-20 02:17:50 +09:00 committed by GitHub
commit 3fd4593570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ endfunction
function! s:stop_job() abort
if has('nvim')
let s:jobid = s:preview_job_id
if s:jobid isnot# v:null
if ((s:jobid isnot# v:null) && (s:jobid !=# 'no process'))
call jobstop(s:jobid)
if bufexists(s:preview_buf_nr)
execute "bw! " . s:preview_buf_nr
@ -33,7 +33,7 @@ function! s:stop_job() abort
endif
else
let s:jobid = term_getjob(bufnr('%'))
if s:jobid isnot# v:null
if ((s:jobid isnot# v:null) && (s:jobid !=# 'no process'))
call job_stop(s:jobid)
let c = 0
while job_status(s:jobid) is# 'run'