add &shellquote to job cmd

This commit is contained in:
itouen 2019-02-27 21:02:15 +09:00 committed by Marco Hinz
parent 8b900a5491
commit 7c62f29d62

View File

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