win32: Wrap bg cmd in quotes

This commit is contained in:
Leszek Swirski 2014-11-12 13:21:10 +00:00
parent c12ae33353
commit 24a03920fe

View File

@ -124,14 +124,15 @@ function! latex#util#execute(exe) " {{{1
" Set up command string based on the given system " Set up command string based on the given system
if has('win32') if has('win32')
if bg let cmd = a:exe.cmd
let cmd = '!start /b ' . a:exe.cmd
else
let cmd = '!' . a:exe.cmd
endif
if null if null
let cmd .= ' >nul' let cmd .= ' >nul'
endif endif
if bg
let cmd = '!start /b "' . cmd . '"'
else
let cmd = '!' . cmd
endif
else else
let cmd = '!' . a:exe.cmd let cmd = '!' . a:exe.cmd
if null if null