Use vimtex#util#shellescape consistently (#196)
This commit is contained in:
parent
b10486b729
commit
049750d2da
@ -112,7 +112,7 @@ function! vimtex#latexmk#clean(full) " {{{1
|
|||||||
if has('win32')
|
if has('win32')
|
||||||
let cmd = 'cd /D "' . b:vimtex.root . '" & '
|
let cmd = 'cd /D "' . b:vimtex.root . '" & '
|
||||||
else
|
else
|
||||||
let cmd = 'cd ' . shellescape(b:vimtex.root) . '; '
|
let cmd = 'cd ' . vimtex#util#shellescape(b:vimtex.root) . '; '
|
||||||
endif
|
endif
|
||||||
let cmd .= 'latexmk'
|
let cmd .= 'latexmk'
|
||||||
if g:vimtex_latexmk_build_dir !=# ''
|
if g:vimtex_latexmk_build_dir !=# ''
|
||||||
@ -377,7 +377,7 @@ function! s:latexmk_build_cmd() " {{{1
|
|||||||
let cmd = 'cd /D "' . b:vimtex.root . '"'
|
let cmd = 'cd /D "' . b:vimtex.root . '"'
|
||||||
let cmd .= ' && set max_print_line=2000 & latexmk'
|
let cmd .= ' && set max_print_line=2000 & latexmk'
|
||||||
else
|
else
|
||||||
let cmd = 'cd ' . shellescape(b:vimtex.root)
|
let cmd = 'cd ' . vimtex#util#shellescape(b:vimtex.root)
|
||||||
if fnamemodify(&shell, ':t') ==# 'fish'
|
if fnamemodify(&shell, ':t') ==# 'fish'
|
||||||
let cmd .= '; and set max_print_line 2000; and latexmk'
|
let cmd .= '; and set max_print_line 2000; and latexmk'
|
||||||
else
|
else
|
||||||
@ -386,7 +386,8 @@ function! s:latexmk_build_cmd() " {{{1
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
let cmd .= ' ' . g:vimtex_latexmk_options
|
let cmd .= ' ' . g:vimtex_latexmk_options
|
||||||
let cmd .= ' -e ' . shellescape('$pdflatex =~ s/ / -file-line-error /')
|
let cmd .= ' -e ' . vimtex#util#shellescape(
|
||||||
|
\ '$pdflatex =~ s/ / -file-line-error /')
|
||||||
if g:vimtex_latexmk_build_dir !=# ''
|
if g:vimtex_latexmk_build_dir !=# ''
|
||||||
let cmd .= ' -outdir=' . g:vimtex_latexmk_build_dir
|
let cmd .= ' -outdir=' . g:vimtex_latexmk_build_dir
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user