From cf459d62e7f4727c6f2e29464745d9f8f375d8a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sat, 10 May 2014 13:10:16 +0200 Subject: [PATCH] Add check for missing log file (addresses #13) --- autoload/latex/latexmk.vim | 5 +++++ 1 file changed, 5 insertions(+) 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