From 0fa274546e291f520195a1d542772304429a393d Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 21 Apr 2008 03:56:09 -0500 Subject: actually restrict the length of the final line --- vimrc | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3