mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-12 11:53:49 -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)
|
||||
|
||||
" Regular headers
|
||||
let depth = match(line, '\(^#\+\)\@<=\( .*$\)\@=')
|
||||
if depth > 0
|
||||
return ">" . depth
|
||||
if line =~# '^#\+ '
|
||||
return ">" . match(line, ' ')
|
||||
endif
|
||||
|
||||
" Setext style headings
|
||||
|
||||
Reference in New Issue
Block a user