From c2e0c41dfd0b77568f565b714fc8d1a37f1b577b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 10 Mar 2015 15:20:39 +0100 Subject: [PATCH] Don't redraw before message! --- autoload/vimtex/latexmk.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 33d8d89..2a27683 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -77,7 +77,10 @@ endfunction " }}}1 function! vimtex#latexmk#callback(status) " {{{1 call vimtex#latexmk#errors_open(0) - redraw! + + if has_key(g:vimtex#data[b:vimtex.id].viewer, 'latexmk_callback') + call g:vimtex#data[b:vimtex.id].viewer.latexmk_callback() + endif echohl ModeMsg echon "latexmk compile: " @@ -90,10 +93,6 @@ function! vimtex#latexmk#callback(status) " {{{1 endif echohl None - if has_key(g:vimtex#data[b:vimtex.id].viewer, 'latexmk_callback') - call g:vimtex#data[b:vimtex.id].viewer.latexmk_callback() - endif - return "" endfunction