From 235a5631f96ca7613d0fe48fe3731a8ce76e436d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 18 Sep 2013 22:51:23 +0200 Subject: Update latex-box and elixir --- ftplugin/latex-box/folding.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ftplugin/latex-box/folding.vim') diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim index 36f1577b..55a975f8 100644 --- a/ftplugin/latex-box/folding.vim +++ b/ftplugin/latex-box/folding.vim @@ -153,13 +153,15 @@ function! LatexBox_FoldLevel(lnum) endif endfor + " Never fold \end{document} + if line =~# '^\s*\\end{document}' + return 0 + endif + " Fold environments if g:LatexBox_fold_envs == 1 if line =~# s:envbeginpattern return "a1" - elseif line =~# '^\s*\\end{document}' - " Never fold \end{document} - return 0 elseif line =~# s:envendpattern return "s1" endif -- cgit v1.2.3