diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 00:56:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-08 00:56:37 +1200 |
commit | 1878ccd255b91ffabbe754d8b843e795fa95e034 (patch) | |
tree | 14adc5f0fb5587487a031f4633bd78c368485c63 | |
parent | Merge branch 'hotfix/v0.6.1' (diff) | |
parent | Bump VERSION (correctly this time) (diff) | |
download | vim-strip-trailing-whitespace-1878ccd255b91ffabbe754d8b843e795fa95e034.tar.gz vim-strip-trailing-whitespace-1878ccd255b91ffabbe754d8b843e795fa95e034.zip |
Merge branch 'hotfix/v0.6.2'v0.6.2
* hotfix/v0.6.2:
Bump VERSION (correctly this time)
Fix another edge case
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | plugin/strip_trailing_whitespace.vim | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |