aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-20 20:36:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-20 20:36:46 +1200
commite8dae5d0044360b2c8db8116aa8d59b597996faf (patch)
treed123255eeb834435419bdd0f9a210ffb4cf78e94
parentMerge branch 'release/v2.0.0' into develop (diff)
parentBump VERSION (diff)
downloadvim-strip-trailing-whitespace-e8dae5d0044360b2c8db8116aa8d59b597996faf.tar.gz
vim-strip-trailing-whitespace-e8dae5d0044360b2c8db8116aa8d59b597996faf.zip
Merge branch 'hotfix/v2.0.1' into develop
* hotfix/v2.0.1: Bump VERSION Handle ranges correctly
-rw-r--r--VERSION2
-rw-r--r--plugin/strip_trailing_whitespace.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 227cea2..38f77a6 100644
--- a/VERSION
+++ b/VERSION
@@ -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)