Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't reset PID if already set (fixes #176)
  • Loading branch information
lervag committed Jun 5, 2015
1 parent e05ba6b commit d65f92d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/vimtex/latexmk.vim
Expand Up @@ -28,7 +28,10 @@ function! vimtex#latexmk#init(initialized) " {{{1
" Set compiler (this defines the errorformat)
compiler latexmk

let g:vimtex#data[b:vimtex.id].pid = 0
" Initialize system PID
if !has_key(g:vimtex#data[b:vimtex.id], 'pid')
let g:vimtex#data[b:vimtex.id].pid = 0
endif

" Define commands
command! -buffer VimtexCompile call vimtex#latexmk#compile()
Expand Down

0 comments on commit d65f92d

Please sign in to comment.