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:
Konfekt
2021-02-15 07:08:16 +01:00
committed by Tim Pope
parent 276524ed9c
commit baf2592d33

View File

@@ -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