From 48e612601bc19883ac6906583e2f0cb096dc1d0c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 6 Jul 2019 10:07:52 +0200 Subject: [PATCH] s:BuildShell: fix E706 This happens with old Vim versions (before 7.4.1546): > Vim(let):E706: Variable type mismatch for: cmd Ref: https://github.com/vim/vim/commit/f6f32c38b --- autoload/fugitive.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d8da6c5..c401212 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -342,8 +342,7 @@ function! s:BuildShell(dir, env, args) abort else let pre = 'cd ' . s:shellesc(tree) . (s:winshell() ? '& ' : '; ') . pre endif - let cmd = join(map(cmd, 's:shellesc(v:val)')) - return pre . g:fugitive_git_executable . ' ' . cmd + return pre . g:fugitive_git_executable . ' ' . join(map(cmd, 's:shellesc(v:val)')) endfunction function! fugitive#Prepare(...) abort