From 82d98ec1f630e74229c6f0ca99efed0a784bca55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Fri, 13 Jun 2014 21:39:03 +0200 Subject: [PATCH] Only error if variable already exist --- autoload/latex/util.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autoload/latex/util.vim b/autoload/latex/util.vim index e366edb..e3010e1 100644 --- a/autoload/latex/util.vim +++ b/autoload/latex/util.vim @@ -80,9 +80,11 @@ let s:convert_back_list = map([ " {{{1 latex#util#error_deprecated function! latex#util#error_deprecated(variable) - echoerr "Deprecation error: " . a:variable - echoerr "Please red docs for more info!" - echoerr ":h vim-latex-changelog" + if exists(a:variable) + echoerr "Deprecation error: " . a:variable + echoerr "Please red docs for more info!" + echoerr ":h vim-latex-changelog" + endif endfunction " {{{1 latex#util#get_env