Don't sleep unless necessary

This commit is contained in:
Karl Yngve Lervåg 2016-08-23 15:46:21 +02:00
parent 3675cbc7a9
commit cc068c30c5

View File

@ -415,10 +415,11 @@ endfunction
" }}}2 " }}}2
function! s:zathura.latexmk_callback(status) dict " {{{2 function! s:zathura.latexmk_callback(status) dict " {{{2
if !a:status | return | endif if !a:status | return | endif
sleep 500m
if g:vimtex_view_use_temp_files if g:vimtex_view_use_temp_files
call self.copy_files() call self.copy_files()
else
sleep 500m
endif endif
if !self.xwin_exists() if !self.xwin_exists()