aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 00:56:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 00:56:53 +1200
commit6cdcb0d1e658dd84e9ff934fbabffc4f0fb28f19 (patch)
tree14adc5f0fb5587487a031f4633bd78c368485c63
parentMerge branch 'hotfix/v0.6.1' into develop (diff)
parentBump VERSION (correctly this time) (diff)
downloadvim-strip-trailing-whitespace-6cdcb0d1e658dd84e9ff934fbabffc4f0fb28f19.tar.gz
vim-strip-trailing-whitespace-6cdcb0d1e658dd84e9ff934fbabffc4f0fb28f19.zip
Merge branch 'hotfix/v0.6.2' into develop
* hotfix/v0.6.2: Bump VERSION (correctly this time) Fix another edge case
-rw-r--r--VERSION2
-rw-r--r--plugin/strip_trailing_whitespace.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index faef31a..b616048 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.7.0
+0.6.2
diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim
index 2714f36..f3e01c0 100644
--- a/plugin/strip_trailing_whitespace.vim
+++ b/plugin/strip_trailing_whitespace.vim
@@ -42,7 +42,7 @@ function! s:StripTrailingWhitespace()
" If this line has any non-whitespace characters on it, update our cutoff
" point using its index, and push the trimmed lines we've counted since
" the last non-whitespace line onto the trimmed total
- if l:line =~# '\S'
+ if l:line =~# '\S' || l:last == 1
let l:cutoff = l:li
let l:trimmed = l:trimmed + l:trimmed_buffer
let l:trimmed_buffer = 0