From dfdbc19ddc951a93c8c24a9eb87b03a8600d00cb Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Wed, 7 May 2008 05:04:01 -0500 Subject: strip out the explicit foldlevel markers as well --- vim/plugin/foldtext.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/plugin/foldtext.vim b/vim/plugin/foldtext.vim index f6fad9a..728b822 100644 --- a/vim/plugin/foldtext.vim +++ b/vim/plugin/foldtext.vim @@ -9,7 +9,7 @@ function Foldtext_base(...) " }}} " remove the marker that caused this fold from the display {{{ let foldmarkers = split(&foldmarker, ',') - let line = substitute(line, '\V' . foldmarkers[0], ' ', '') + let line = substitute(line, '\V' . foldmarkers[0] . '\%(\d\+\)\?', ' ', '') " }}} " remove comments that vim knows about {{{ let comment = split(&commentstring, '%s') -- cgit v1.2.3