Only error if variable already exist

This commit is contained in:
Karl Yngve Lervåg 2014-06-13 21:39:03 +02:00
parent 83a579fd21
commit 82d98ec1f6

View File

@ -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