Merge pull request #85 from Konfekt/master
ensure that under MS Windows cmd shell executes bang commands
This commit is contained in:
commit
f7ffbf62ef
@ -143,12 +143,21 @@ function! latex#util#execute(exe) " {{{1
|
||||
endif
|
||||
endif
|
||||
|
||||
if has('win32') && &shell !~? 'cmd'
|
||||
let savedShell=[&shell, &shellcmdflag, &shellxquote, &shellxescape, &shellquote, &shellpipe, &shellredir, &shellslash]
|
||||
set shell& shellcmdflag& shellxquote& shellxescape& shellquote& shellpipe& shellredir& shellslash&
|
||||
endif
|
||||
|
||||
if silent
|
||||
silent execute cmd
|
||||
else
|
||||
execute cmd
|
||||
endif
|
||||
|
||||
if has('win32') && &shell !~? 'cmd'
|
||||
let [&shell, &shellcmdflag, &shellxquote, &shellxescape, &shellquote, &shellpipe, &shellredir, &shellslash]=savedShell
|
||||
endif
|
||||
|
||||
" Return to previous working directory
|
||||
if has_key(a:exe, 'wd')
|
||||
execute 'lcd ' . fnameescape(pwd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user