Minor adjustment to fold level function

This commit is contained in:
Karl Yngve Lervåg 2015-12-03 20:45:26 +01:00
parent 05b2eee8dd
commit fa9af58376

View File

@ -104,9 +104,9 @@ function! vimtex#fold#level(lnum) " {{{1
call s:refresh_folded_sections()
" Check for normal lines first (optimization)
let line = getline(a:lnum)
if line !~ '\(% Fake\|\\\(document\|begin\|end\|'
\ . 'front\|main\|back\|app\|sub\|section\|chapter\|part\)\)'
let line = getline(a:lnum)
if line !~# '% Fake\|\\\%(document\|begin\|end\|'
\ . 'front\|main\|back\|app\|sub\|section\|chapter\|part\)'
return '='
endif