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
if has('win32')
if bg
let cmd = '!start /b ' . a:exe.cmd
else
let cmd = '!' . a:exe.cmd
endif
let cmd = a:exe.cmd
if null
let cmd .= ' >nul'
endif
if bg
let cmd = '!start /b "' . cmd . '"'
else
let cmd = '!' . cmd
endif
else
let cmd = '!' . a:exe.cmd
if null