summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 03:56:09 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 03:56:09 -0500
commit0fa274546e291f520195a1d542772304429a393d (patch)
tree217afe6a2f0a7848a564c8e54e8b268d90094b5f
parent0053be708f9114ff0853ecd151dfd7068262789b (diff)
downloadvim-foldtext-0fa274546e291f520195a1d542772304429a393d.tar.gz
vim-foldtext-0fa274546e291f520195a1d542772304429a393d.zip
actually restrict the length of the final line
-rw-r--r--vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 30bec94..f7922ac 100644
--- a/vimrc
+++ b/vimrc
@@ -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