diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-18 22:51:23 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-18 22:51:23 +0200 |
commit | 235a5631f96ca7613d0fe48fe3731a8ce76e436d (patch) | |
tree | 58fe585102a5dd1ed5b8b9efc202c6a880cafaa0 /ftplugin/latex-box/folding.vim | |
parent | edf1aa4a1cc7993b33352870e099d1298d14f67f (diff) | |
download | vim-polyglot-235a5631f96ca7613d0fe48fe3731a8ce76e436d.tar.gz vim-polyglot-235a5631f96ca7613d0fe48fe3731a8ce76e436d.zip |
Update latex-box and elixir
Diffstat (limited to 'ftplugin/latex-box/folding.vim')
-rw-r--r-- | ftplugin/latex-box/folding.vim | 8 |
1 files changed, 5 insertions, 3 deletions
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 |