mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-08 18:03:48 -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')
|
if has('folding')
|
||||||
let s:foldmethod = &l:foldmethod
|
let s:foldmethod = &l:foldmethod
|
||||||
|
let s:foldtext = &l:foldtext
|
||||||
endif
|
endif
|
||||||
|
|
||||||
runtime! syntax/html.vim
|
runtime! syntax/html.vim
|
||||||
@@ -41,6 +42,10 @@ if exists('s:foldmethod') && s:foldmethod !=# &l:foldmethod
|
|||||||
let &l:foldmethod = s:foldmethod
|
let &l:foldmethod = s:foldmethod
|
||||||
unlet s:foldmethod
|
unlet s:foldmethod
|
||||||
endif
|
endif
|
||||||
|
if exists('s:foldtext') && s:foldtext !=# &l:foldtext
|
||||||
|
let &l:foldtext = s:foldtext
|
||||||
|
unlet s:foldtext
|
||||||
|
endif
|
||||||
|
|
||||||
if !exists('g:markdown_minlines')
|
if !exists('g:markdown_minlines')
|
||||||
let g:markdown_minlines = 50
|
let g:markdown_minlines = 50
|
||||||
|
|||||||
Reference in New Issue
Block a user