From 41aa424a572dfb0869ca2ab434e7e19333d05ab9 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 24 Dec 2016 13:16:51 +0000 Subject: [PATCH] Simplify fold text --- plugin/functions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/functions.vim b/plugin/functions.vim index faf8aa1..a516276 100644 --- a/plugin/functions.vim +++ b/plugin/functions.vim @@ -2,7 +2,7 @@ set foldtext=FoldText() function! FoldText() let line = getline(v:foldstart) - return line.' '.string(v:foldend - v:foldstart).' line fold ' + return line.' '.string(v:foldend - v:foldstart + 1).' lines ' endfunction " Strip trailing whitespace