improved MyFoldText() substitution pattern
This commit is contained in:
parent
cfae3997f1
commit
ce87f94d97
|
@ -98,7 +98,7 @@ function! MyFoldText()
|
||||||
let l:subexp = '^ \{,' . len(l:prefix) . '}'
|
let l:subexp = '^ \{,' . len(l:prefix) . '}'
|
||||||
|
|
||||||
let l:foldtext = substitute(l:line, l:subexp, l:prefix, '')
|
let l:foldtext = substitute(l:line, l:subexp, l:prefix, '')
|
||||||
let l:foldtext = substitute(l:foldtext, '"{{{', '', '')
|
let l:foldtext = substitute(l:foldtext, '"{\{3}', '', '')
|
||||||
|
|
||||||
return l:foldtext
|
return l:foldtext
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue