Fix for slowness due to folds (#143)

This commit is contained in:
David Palma
2019-07-24 22:59:55 +02:00
committed by Tim Pope
parent 57c58269a2
commit fd3f4831be

View File

@@ -23,9 +23,8 @@ function! MarkdownFold()
let line = getline(v:lnum) let line = getline(v:lnum)
" Regular headers " Regular headers
let depth = match(line, '\(^#\+\)\@<=\( .*$\)\@=') if line =~# '^#\+ '
if depth > 0 return ">" . match(line, ' ')
return ">" . depth
endif endif
" Setext style headings " Setext style headings