aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 00:45:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 00:47:11 +1200
commit43f69e068c24ed8eb8cd00085c04a17360c26ab7 (patch)
tree8aac1874fb07b56e784a68823edd684550b23059 /plugin
parentMerge branch 'release/v0.6.0' (diff)
downloadvim-strip-trailing-whitespace-43f69e068c24ed8eb8cd00085c04a17360c26ab7.tar.gz
vim-strip-trailing-whitespace-43f69e068c24ed8eb8cd00085c04a17360c26ab7.zip
Give cutoff point a sensible starting value
This was causing blank buffers to mis-report the number of deleted lines. You can't delete line 1 (well, not really).
Diffstat (limited to 'plugin')
-rw-r--r--plugin/strip_trailing_whitespace.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim
index b332034..2714f36 100644
--- a/plugin/strip_trailing_whitespace.vim
+++ b/plugin/strip_trailing_whitespace.vim
@@ -17,7 +17,7 @@ let g:loaded_strip_trailing_whitespace = 1
function! s:StripTrailingWhitespace()
" Line number of last line that had non-whitespace characters on it
- let l:cutoff = 0
+ let l:cutoff = 1
" Tracking lines trimmed between non-whitespace lines and then totalling
let l:trimmed_buffer = 0