From 8d5e01851966a886b5b81622b7d1dece55b1a9b9 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 1 Feb 2017 09:09:03 -0500 Subject: [PATCH] Rename variable to work with older (n)vim, when types were sticky Closes #213 --- autoload/sy/repo.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index 452ca89..fd44f37 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -230,8 +230,8 @@ endfunction " Function: s:initialize_job {{{1 function! s:initialize_job(vcs, do_register) abort - let cmd = s:expand_cmd(a:vcs) - let cmd = (has('win32') && &shell =~ 'cmd') ? cmd : ['sh', '-c', cmd] + let vcs_cmd = s:expand_cmd(a:vcs) + let cmd = (has('win32') && &shell =~ 'cmd') ? vcs_cmd : ['sh', '-c', vcs_cmd] let options = { \ 'stdoutbuf': [], \ 'vcs': a:vcs,