Use one of &shellxquote and &shellquote
This commit is contained in:
parent
7c62f29d62
commit
b285820778
@ -299,7 +299,13 @@ function! s:initialize_job(vcs) abort
|
||||
if has('nvim')
|
||||
let cmd = &shell =~ 'cmd' ? vcs_cmd : ['sh', '-c', vcs_cmd]
|
||||
else
|
||||
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
|
||||
else
|
||||
let cmd = ['sh', '-c', vcs_cmd]
|
||||
|
Loading…
Reference in New Issue
Block a user