Fixes #212. Fix pdflatex substitution to work with Latexmk's 'internal' keyword

This commit is contained in:
Camil Staps 2015-08-11 09:53:30 +02:00
parent 47ac958f76
commit 95e30c706b

View File

@ -384,7 +384,7 @@ function! s:latexmk_build_cmd() " {{{1
let cmd .= ' ' . g:vimtex_latexmk_options
let cmd .= ' -e ' . vimtex#util#shellescape(
\ '$pdflatex =~ s/ / -file-line-error /')
\ '$pdflatex =~ s/^((.(?<!^internal(?=\s)))*?) /$1 -file-line-error /')
if g:vimtex_latexmk_build_dir !=# ''
let cmd .= ' -outdir=' . g:vimtex_latexmk_build_dir
endif