Improved latexmk callbacks for mupdf/zathura
This commit is contained in:
parent
0163810065
commit
2a849ee67a
@ -281,14 +281,13 @@ 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.forward_search(b:vimtex.out())
|
call self.xwin_send_keys(g:vimtex_view_mupdf_send_keys)
|
||||||
if has_key(self, 'hook_callback')
|
call self.forward_search(b:vimtex.out())
|
||||||
call self.hook_callback()
|
if has_key(self, 'hook_callback')
|
||||||
endif
|
call self.hook_callback()
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -379,13 +378,12 @@ 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())
|
|
||||||
if has_key(self, 'hook_callback')
|
call self.forward_search(b:vimtex.out())
|
||||||
call self.hook_callback()
|
if has_key(self, 'hook_callback')
|
||||||
endif
|
call self.hook_callback()
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user