Use one of &shellxquote and &shellquote

This commit is contained in:
itouen 2019-02-28 18:36:35 +09:00 committed by Marco Hinz
parent 7c62f29d62
commit b285820778

View File

@ -299,7 +299,13 @@ function! s:initialize_job(vcs) abort
if has('nvim') if has('nvim')
let cmd = &shell =~ 'cmd' ? vcs_cmd : ['sh', '-c', vcs_cmd] let cmd = &shell =~ 'cmd' ? vcs_cmd : ['sh', '-c', vcs_cmd]
else else
let cmd = join([&shell, &shellcmdflag, &shellquote, vcs_cmd, &shellquote]) if &shell =~ 'cmd'
let cmd = vcs_cmd
elseif empty(&shellxquote)
let cmd = join([&shell, &shellcmdflag, &shellquote, vcs_cmd, &shellquote])
else
let cmd = join([&shell, &shellcmdflag, &shellxquote, vcs_cmd, &shellxquote])
endif
endif endif
else else
let cmd = ['sh', '-c', vcs_cmd] let cmd = ['sh', '-c', vcs_cmd]