diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-21 03:56:09 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-21 03:56:09 -0500 |
commit | 0fa274546e291f520195a1d542772304429a393d (patch) | |
tree | 217afe6a2f0a7848a564c8e54e8b268d90094b5f /vimrc | |
parent | 0053be708f9114ff0853ecd151dfd7068262789b (diff) | |
download | vim-foldtext-0fa274546e291f520195a1d542772304429a393d.tar.gz vim-foldtext-0fa274546e291f520195a1d542772304429a393d.zip |
actually restrict the length of the final line
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -178,6 +178,7 @@ function Base_foldtext(...) " align everything, and pad the end of the display with - let line = printf('%-' . (62 - v:foldlevel) . 's', line) + let line = strpart(line, 0, 62 - v:foldlevel) let line = substitute(line, '\%( \)\@<= \%( *$\)\@=', '-', 'g') " format the line count |