Fold all %%fake, not just %%fakesection (by Gerd Wachsmuth)

This commit is contained in:
Gerd Wachsmuth
2010-09-07 03:01:10 +00:00
committed by Till Maas
parent 07c1d0fa4a
commit 2bc3c63852
+2 -2
View File
@@ -54,7 +54,7 @@ function! Tex_FoldSections(lst, endpat)
if s =~ '%%fakesection'
let s = '^\s*' . s
else
let s = '^\s*\\' . s . '\W'
let s = '^\s*\\' . s . '\W\|^\s*%%fake' . s
endif
let endpat = s . '\|' . a:endpat
if i > 0
@@ -119,7 +119,7 @@ function! MakeTexFolds(force)
endif
if !exists('g:Tex_FoldedSections')
let g:Tex_FoldedSections = 'part,chapter,section,%%fakesection,'
let g:Tex_FoldedSections = 'part,chapter,section,'
\. 'subsection,subsubsection,paragraph'
endif