diff options
-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 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 |