Fixed #595: s:re not always initialized

This commit is contained in:
Karl Yngve Lervåg 2016-10-22 19:14:43 +02:00
parent 18a2b062b8
commit c72fcbc0df

View File

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