From c72fcbc0df9c8c1ad80ccd416b09b21ea4599dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sat, 22 Oct 2016 19:14:43 +0200 Subject: [PATCH] Fixed #595: s:re not always initialized --- autoload/vimtex/delim.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/vimtex/delim.vim b/autoload/vimtex/delim.vim index 6d680db..e076a39 100644 --- a/autoload/vimtex/delim.vim +++ b/autoload/vimtex/delim.vim @@ -214,8 +214,10 @@ endfunction " }}}1 function! vimtex#delim#get_delim_regexes(...) " {{{1 - return [s:re.delim_math.open, s:re.delim_math.close, - \ s:re.delim_tex.open, s:re.delim_tex.close] + return exists('s:re') + \ ? [s:re.delim_math.open, s:re.delim_math.close, + \ s:re.delim_tex.open, s:re.delim_tex.close] + \ : ['', '', '', ''] endfunction " }}}1