Simplify job ID handling a little more

This commit is contained in:
James McCoy 2017-01-30 09:31:14 -05:00
parent 014b058d3d
commit 716ce90fe4

View File

@ -52,9 +52,9 @@ endfunction
function! sy#repo#get_diff_start(vcs, do_register) abort
call sy#verbose('get_diff_start()', a:vcs)
let job_id = get(b:, 'sy_job_id_'.a:vcs)
" Neovim
if has('nvim')
let job_id = get(b:, 'sy_job_id_'.a:vcs)
if job_id
silent! call jobstop(job_id)
endif
@ -74,7 +74,6 @@ function! sy#repo#get_diff_start(vcs, do_register) abort
" Newer Vim
elseif v:version > 704 || v:version == 704 && has('patch1967')
let job_id = get(b:, 'sy_job_id_'.a:vcs)
if job_id
silent! call job_stop(job_id)
endif