Don't redraw before message!

This commit is contained in:
Karl Yngve Lervåg 2015-03-10 15:20:39 +01:00
parent 4c4597b618
commit c2e0c41dfd

View File

@ -77,7 +77,10 @@ endfunction
" }}}1 " }}}1
function! vimtex#latexmk#callback(status) " {{{1 function! vimtex#latexmk#callback(status) " {{{1
call vimtex#latexmk#errors_open(0) 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 echohl ModeMsg
echon "latexmk compile: " echon "latexmk compile: "
@ -90,10 +93,6 @@ function! vimtex#latexmk#callback(status) " {{{1
endif endif
echohl None 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 "" return ""
endfunction endfunction