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