Only use -outdir if needed (fixes #161)
The -outdir option is only available in latexmk after version 4.27.
This commit is contained in:
parent
1cc368fb88
commit
ce89b89c49
@ -108,7 +108,10 @@ function! vimtex#latexmk#clean(full) " {{{1
|
||||
else
|
||||
let cmd = 'cd ' . shellescape(data.root) . '; '
|
||||
endif
|
||||
let cmd .= 'latexmk -outdir=' . g:vimtex_latexmk_build_dir
|
||||
let cmd .= 'latexmk'
|
||||
if g:vimtex_latexmk_build_dir !=# '.'
|
||||
let cmd .= ' -outdir=' . g:vimtex_latexmk_build_dir
|
||||
endif
|
||||
let cmd .= a:full ? ' -C ' : ' -c '
|
||||
let cmd .= vimtex#util#fnameescape(data.base)
|
||||
let exe = {
|
||||
|
Loading…
Reference in New Issue
Block a user