mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-08 09:53:50 -05:00
Don't let fenced languages change &foldtext
Addresses the sequel to issue #154. See https://github.com/tpope/vim-markdown/issues/154#issuecomment-778677280
This commit is contained in:
@@ -14,6 +14,7 @@ endif
|
||||
|
||||
if has('folding')
|
||||
let s:foldmethod = &l:foldmethod
|
||||
let s:foldtext = &l:foldtext
|
||||
endif
|
||||
|
||||
runtime! syntax/html.vim
|
||||
@@ -41,6 +42,10 @@ if exists('s:foldmethod') && s:foldmethod !=# &l:foldmethod
|
||||
let &l:foldmethod = s:foldmethod
|
||||
unlet s:foldmethod
|
||||
endif
|
||||
if exists('s:foldtext') && s:foldtext !=# &l:foldtext
|
||||
let &l:foldtext = s:foldtext
|
||||
unlet s:foldtext
|
||||
endif
|
||||
|
||||
if !exists('g:markdown_minlines')
|
||||
let g:markdown_minlines = 50
|
||||
|
||||
Reference in New Issue
Block a user