diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 00:45:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 00:45:18 +1200 |
commit | 312e015831c2d28973518c28afbde8611c5ead1e (patch) | |
tree | 8aac1874fb07b56e784a68823edd684550b23059 | |
parent | Merge branch 'release/v0.6.0' into develop (diff) | |
download | vim-strip-trailing-whitespace-312e015831c2d28973518c28afbde8611c5ead1e.tar.gz vim-strip-trailing-whitespace-312e015831c2d28973518c28afbde8611c5ead1e.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).
-rw-r--r-- | plugin/strip_trailing_whitespace.vim | 2 |
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 |