From cc068c30c5d42ab9c8184fa3fcbdea2b9d6c29d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 23 Aug 2016 15:46:21 +0200 Subject: [PATCH] Don't sleep unless necessary --- autoload/vimtex/view.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/vimtex/view.vim b/autoload/vimtex/view.vim index c8c5c7e..4f77a82 100644 --- a/autoload/vimtex/view.vim +++ b/autoload/vimtex/view.vim @@ -415,10 +415,11 @@ endfunction " }}}2 function! s:zathura.latexmk_callback(status) dict " {{{2 if !a:status | return | endif - sleep 500m if g:vimtex_view_use_temp_files call self.copy_files() + else + sleep 500m endif if !self.xwin_exists()