mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
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
This commit is contained in:
@@ -342,8 +342,7 @@ function! s:BuildShell(dir, env, args) abort
|
|||||||
else
|
else
|
||||||
let pre = 'cd ' . s:shellesc(tree) . (s:winshell() ? '& ' : '; ') . pre
|
let pre = 'cd ' . s:shellesc(tree) . (s:winshell() ? '& ' : '; ') . pre
|
||||||
endif
|
endif
|
||||||
let cmd = join(map(cmd, 's:shellesc(v:val)'))
|
return pre . g:fugitive_git_executable . ' ' . join(map(cmd, 's:shellesc(v:val)'))
|
||||||
return pre . g:fugitive_git_executable . ' ' . cmd
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#Prepare(...) abort
|
function! fugitive#Prepare(...) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user