From 049750d2da5ca1025535865126a986a0baa84a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 7 Jul 2015 22:58:40 +0200 Subject: [PATCH] Use vimtex#util#shellescape consistently (#196) --- autoload/vimtex/latexmk.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index e90c424..ed04f30 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -112,7 +112,7 @@ function! vimtex#latexmk#clean(full) " {{{1 if has('win32') let cmd = 'cd /D "' . b:vimtex.root . '" & ' else - let cmd = 'cd ' . shellescape(b:vimtex.root) . '; ' + let cmd = 'cd ' . vimtex#util#shellescape(b:vimtex.root) . '; ' endif let cmd .= 'latexmk' 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 .= ' && set max_print_line=2000 & latexmk' else - let cmd = 'cd ' . shellescape(b:vimtex.root) + let cmd = 'cd ' . vimtex#util#shellescape(b:vimtex.root) if fnamemodify(&shell, ':t') ==# 'fish' let cmd .= '; and set max_print_line 2000; and latexmk' else @@ -386,7 +386,8 @@ function! s:latexmk_build_cmd() " {{{1 endif 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 !=# '' let cmd .= ' -outdir=' . g:vimtex_latexmk_build_dir endif