Simplify job ID handling a little more
This commit is contained in:
parent
014b058d3d
commit
716ce90fe4
@ -52,9 +52,9 @@ endfunction
|
|||||||
function! sy#repo#get_diff_start(vcs, do_register) abort
|
function! sy#repo#get_diff_start(vcs, do_register) abort
|
||||||
call sy#verbose('get_diff_start()', a:vcs)
|
call sy#verbose('get_diff_start()', a:vcs)
|
||||||
|
|
||||||
|
let job_id = get(b:, 'sy_job_id_'.a:vcs)
|
||||||
" Neovim
|
" Neovim
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
let job_id = get(b:, 'sy_job_id_'.a:vcs)
|
|
||||||
if job_id
|
if job_id
|
||||||
silent! call jobstop(job_id)
|
silent! call jobstop(job_id)
|
||||||
endif
|
endif
|
||||||
@ -74,7 +74,6 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
|
|||||||
|
|
||||||
" Newer Vim
|
" Newer Vim
|
||||||
elseif v:version > 704 || v:version == 704 && has('patch1967')
|
elseif v:version > 704 || v:version == 704 && has('patch1967')
|
||||||
let job_id = get(b:, 'sy_job_id_'.a:vcs)
|
|
||||||
if job_id
|
if job_id
|
||||||
silent! call job_stop(job_id)
|
silent! call job_stop(job_id)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user