Fixed a minor environment folding issue

This commit is contained in:
Karl Yngve Lervåg 2014-06-04 14:54:09 +02:00
parent a17f7a49ed
commit b29119742d

View File

@ -70,9 +70,13 @@ function! latex#fold#level(lnum)
" Fold environments
if g:latex_fold_envs
if line =~# s:notcomment . s:notbslash . '\\begin\s*{.\{-}}'
return "a1"
if line !~# '\\end'
return "a1"
endif
elseif line =~# s:notcomment . s:notbslash . '\\end\s*{.\{-}}'
return "s1"
if line !~# '\\begin'
return "s1"
endif
endif
endif