summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-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