Merge branch 'master' into auto_update_neovim
This commit is contained in:
commit
3fd4593570
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user