mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-12 20:03:48 -05:00
Fix for slowness due to folds (#143)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user