Skip to content

Commit

Permalink
Only initialize viewer once (fixes #177)
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Jun 5, 2015
1 parent d65f92d commit b891bd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/vimtex/view.vim
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ endfunction

" {{{1 Zathura
function! s:zathura.init() dict " {{{2
" Only initialize once
if has_key(self, 'xwin_id') | return | endif

if !executable('zathura')
echoerr 'vimtex viewer Zathura is not executable!'
endif
Expand Down

0 comments on commit b891bd7

Please sign in to comment.