Skip to content

Commit

Permalink
merge: ensure project root as cwd for pplatex
Browse files Browse the repository at this point in the history
refer: #2369
  • Loading branch information
lervag committed Apr 10, 2022
2 parents 5811c8e + a087066 commit 7bfcfb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/vimtex/qf/pplatex.vim
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ function! s:qf.addqflist(tex, log) abort dict " {{{1
let l:tmp = fnamemodify(a:log, ':r') . '.pplatex'

call vimtex#jobs#run(printf('pplatex -i "%s" >"%s"', a:log, l:tmp))
call vimtex#paths#pushd(b:vimtex.root)
call vimtex#qf#u#caddfile(self, l:tmp)
call vimtex#paths#popd()
call delete(l:tmp)
endfunction

Expand Down

0 comments on commit 7bfcfb7

Please sign in to comment.