Improved latexmk callbacks for mupdf/zathura
This commit is contained in:
parent
0163810065
commit
2a849ee67a
@ -281,15 +281,14 @@ endfunction
|
||||
|
||||
" }}}2
|
||||
function! s:mupdf.latexmk_callback(status) dict " {{{2
|
||||
if !self.xwin_exists()
|
||||
if self.xwin_get_id()
|
||||
sleep 500m
|
||||
if !self.xwin_exists() | return | endif
|
||||
|
||||
call self.xwin_send_keys(g:vimtex_view_mupdf_send_keys)
|
||||
call self.forward_search(b:vimtex.out())
|
||||
if has_key(self, 'hook_callback')
|
||||
call self.hook_callback()
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" }}}2
|
||||
@ -379,14 +378,13 @@ endfunction
|
||||
|
||||
" }}}2
|
||||
function! s:zathura.latexmk_callback(status) dict " {{{2
|
||||
if !self.xwin_exists()
|
||||
if self.xwin_get_id()
|
||||
sleep 500m
|
||||
if !self.xwin_exists() | return | endif
|
||||
|
||||
call self.forward_search(b:vimtex.out())
|
||||
if has_key(self, 'hook_callback')
|
||||
call self.hook_callback()
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" }}}2
|
||||
|
Loading…
Reference in New Issue
Block a user