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:
parent
fdb57922a4
commit
48e612601b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user