From fa9af58376efaff78e60375780bae07b8202006b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 3 Dec 2015 20:45:26 +0100 Subject: [PATCH] Minor adjustment to fold level function --- autoload/vimtex/fold.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/vimtex/fold.vim b/autoload/vimtex/fold.vim index 0eb1b0a..10ff06a 100644 --- a/autoload/vimtex/fold.vim +++ b/autoload/vimtex/fold.vim @@ -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