Added error message in latex#info if not initialized

This commit is contained in:
Karl Yngve Lervåg 2014-07-16 11:10:34 +02:00
parent cae066f778
commit 9a715c57a9

View File

@ -20,6 +20,11 @@ function! latex#init() " {{{1
endfunction
function! latex#info() " {{{1
if !s:initialized
echoerr "Error: vim-latex has not been initialized!"
return
endif
echo "b:latex"
echo ' id: ' . b:latex.id
if has_key(b:latex, 'fold_parts') && !empty(b:latex.fold_parts)