Fixed a minor bug
This commit is contained in:
parent
1f547978df
commit
a22cb70898
@ -28,6 +28,10 @@ function! latex#fold#init(initialized) " {{{1
|
|||||||
\ "subsubsection",
|
\ "subsubsection",
|
||||||
\ ])
|
\ ])
|
||||||
|
|
||||||
|
" Define some script variables
|
||||||
|
let s:parts = '\v^\s*(\\|\% Fake)(' . join(g:latex_fold_parts, '|') . ')>'
|
||||||
|
let s:secs = '\v^\s*(\\|\% Fake)(' . join(g:latex_fold_sections, '|') . ')>'
|
||||||
|
|
||||||
" Set fold options
|
" Set fold options
|
||||||
setl foldmethod=expr
|
setl foldmethod=expr
|
||||||
setl foldexpr=latex#fold#level(v:lnum)
|
setl foldexpr=latex#fold#level(v:lnum)
|
||||||
@ -266,9 +270,6 @@ function! s:parse_folded() " {{{1
|
|||||||
return folded
|
return folded
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:parts = '\v^\s*(\\|\% Fake)(' . join(g:latex_fold_parts, '|') . ')>'
|
|
||||||
let s:secs = '\v^\s*(\\|\% Fake)(' . join(g:latex_fold_sections, '|') . ')>'
|
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
function! s:parse_label() " {{{1
|
function! s:parse_label() " {{{1
|
||||||
let i = v:foldend
|
let i = v:foldend
|
||||||
|
Loading…
Reference in New Issue
Block a user