Fixed a minor environment folding issue
This commit is contained in:
parent
a17f7a49ed
commit
b29119742d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user