From 716ce90fe40fa23c2e5bdf2c4eacad1435081c96 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 30 Jan 2017 09:31:14 -0500 Subject: [PATCH] Simplify job ID handling a little more --- autoload/sy/repo.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index 8559a34..52bb5e6 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -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