Minor fix
This commit is contained in:
parent
57aeb0fe63
commit
2646e5fe64
@ -690,26 +690,26 @@ function! s:get_aux() dict " {{{1
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
function! s:get_out() dict " {{{1
|
function! s:get_out(...) dict " {{{1
|
||||||
return self.ext('pdf')
|
return call(self.ext, ['pdf'] + a:000, self)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
function! s:get_ext(ext) dict " {{{1
|
function! s:get_ext(ext, ...) dict " {{{1
|
||||||
" First check build dir (latexmk -output_directory option)
|
" First check build dir (latexmk -output_directory option)
|
||||||
if g:vimtex_latexmk_build_dir !=# ''
|
if g:vimtex_latexmk_build_dir !=# ''
|
||||||
let cand = g:vimtex_latexmk_build_dir . '/' . self.name . '.' . a:ext
|
let cand = g:vimtex_latexmk_build_dir . '/' . self.name . '.' . a:ext
|
||||||
if g:vimtex_latexmk_build_dir[0] !=# '/'
|
if g:vimtex_latexmk_build_dir[0] !=# '/'
|
||||||
let cand = self.root . '/' . cand
|
let cand = self.root . '/' . cand
|
||||||
endif
|
endif
|
||||||
if filereadable(cand)
|
if a:0 > 0 || filereadable(cand)
|
||||||
return fnamemodify(cand, ':p')
|
return fnamemodify(cand, ':p')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Next check for file in project root folder
|
" Next check for file in project root folder
|
||||||
let cand = self.root . '/' . self.name . '.' . a:ext
|
let cand = self.root . '/' . self.name . '.' . a:ext
|
||||||
if filereadable(cand)
|
if a:0 > 0 || filereadable(cand)
|
||||||
return fnamemodify(cand, ':p')
|
return fnamemodify(cand, ':p')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ function! vimtex#view#common#use_temp_files_p(viewer) " {{{1
|
|||||||
let a:viewer.synctex = fnamemodify(a:viewer.out, ':r') . '.synctex.gz'
|
let a:viewer.synctex = fnamemodify(a:viewer.out, ':r') . '.synctex.gz'
|
||||||
let a:viewer.copy_files = function('s:copy_files')
|
let a:viewer.copy_files = function('s:copy_files')
|
||||||
else
|
else
|
||||||
let a:viewer.out = b:vimtex.out()
|
let a:viewer.out = b:vimtex.out(1)
|
||||||
let a:viewer.synctex = fnamemodify(a:viewer.out, ':r') . '.synctex.gz'
|
let a:viewer.synctex = fnamemodify(a:viewer.out, ':r') . '.synctex.gz'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user