win32: Wrap bg cmd in quotes
This commit is contained in:
parent
c12ae33353
commit
24a03920fe
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user