- commit
- 4fea2b3caf4701dd81e17b7d7c0b71526fd3bc44
- parent
- 07ef763f89430c314551b562e5f0bc35ca78b1c7
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-02-22 14:04
rm unused offset
Diffstat
| M | after/plugin/folding.vim | 8 | ++++---- |
1 files changed, 4 insertions, 4 deletions
diff --git a/after/plugin/folding.vim b/after/plugin/folding.vim
@@ -18,13 +18,13 @@ function! NextNonBlankLine(lnum) 18 18 endfunction 19 19 20 20 " fold by indent, but include first line21 -1 function! IndentFold(lnum, offset)-1 21 function! IndentFold(lnum) 22 22 if getline(a:lnum) =~? '\v^\s*$' 23 23 return '-1' 24 24 endif 25 2526 -1 let this_indent = IndentLevel(a:lnum) + a:offset27 -1 let next_indent = IndentLevel(NextNonBlankLine(a:lnum)) + a:offset-1 26 let this_indent = IndentLevel(a:lnum) -1 27 let next_indent = IndentLevel(NextNonBlankLine(a:lnum)) 28 28 29 29 if next_indent <= this_indent 30 30 return this_indent @@ -46,5 +46,5 @@ endfunction 46 46 47 47 set foldlevel=99 48 48 set foldmethod=expr49 -1 set foldexpr=IndentFold(v:lnum,0)-1 49 set foldexpr=IndentFold(v:lnum) 50 50 set foldtext=IndentFoldText()