summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-05-07 05:04:01 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-05-07 05:04:01 -0500
commitdfdbc19ddc951a93c8c24a9eb87b03a8600d00cb (patch)
tree5faf8649572250a727d4d05733c7321738e99ae8
parentb59ac7f05d8d157546a2264620cd1884b677320c (diff)
downloadvim-foldtext-dfdbc19ddc951a93c8c24a9eb87b03a8600d00cb.tar.gz
vim-foldtext-dfdbc19ddc951a93c8c24a9eb87b03a8600d00cb.zip
strip out the explicit foldlevel markers as well
-rw-r--r--vim/plugin/foldtext.vim2
1 files changed, 1 insertions, 1 deletions
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')