diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-20 20:36:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-20 20:36:22 +1200 |
commit | 3ecc30fe80b32003414d2647efb17e89c27c6aae (patch) | |
tree | d123255eeb834435419bdd0f9a210ffb4cf78e94 | |
parent | Merge branch 'release/v2.0.0' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-strip-trailing-whitespace-3ecc30fe80b32003414d2647efb17e89c27c6aae.tar.gz vim-strip-trailing-whitespace-3ecc30fe80b32003414d2647efb17e89c27c6aae.zip |
Merge branch 'hotfix/v2.0.1'v2.0.1
* hotfix/v2.0.1:
Bump VERSION
Handle ranges correctly
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | plugin/strip_trailing_whitespace.vim | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -2.0.0 +2.0.1 diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim index 75438d9..ed9ad66 100644 --- a/plugin/strip_trailing_whitespace.vim +++ b/plugin/strip_trailing_whitespace.vim @@ -52,8 +52,8 @@ function s:StripHorizontal(start, end) abort let l:count = 0 " Iterate through buffer - let l:num = 1 - while l:num <= line('$') + let l:num = a:start + while l:num <= a:end " If the line has trailing whitespace, strip it off and bump the count let l:line = getline(l:num) |