diff --git a/autoload/latex/latexmk.vim b/autoload/latex/latexmk.vim index 6377942..3876bb7 100644 --- a/autoload/latex/latexmk.vim +++ b/autoload/latex/latexmk.vim @@ -116,6 +116,11 @@ function! latex#latexmk#errors() cclose let log = g:latex#data[b:latex.id].log() + if empty(log) + echo "No log file found!" + return + endif + if g:latex_latexmk_autojump execute 'cfile ' . log else