diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-20 22:24:43 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-20 22:24:43 -0500 |
commit | 8143a1e02da1081bb36e3f50312e9a15e800c25f (patch) | |
tree | f247fa002da98ada79a23ec46990a230b6bf5021 | |
parent | 92afbfb3ae8e1a8824417289c17e47939083ccee (diff) | |
download | vim-foldtext-8143a1e02da1081bb36e3f50312e9a15e800c25f.tar.gz vim-foldtext-8143a1e02da1081bb36e3f50312e9a15e800c25f.zip |
checking for surrounding whitespace isn't necessary, since we strip the front and back afterwards
-rw-r--r-- | vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -294,7 +294,7 @@ function Base_foldtext(...) " remove the marker that caused this fold from the display let foldmarkers = split(&foldmarker, ',') - let line = substitute(line, '\V\s\?' . foldmarkers[0] . '\s\?', ' ', '') + let line = substitute(line, '\V' . foldmarkers[0], ' ', '') " remove comments that we know about let comment = split(&commentstring, '%s') |