diff options
Diffstat (limited to 'vim/plugin/strip_trailing_whitespace.vim')
-rw-r--r-- | vim/plugin/strip_trailing_whitespace.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim index ceeaec7c..677e51c5 100644 --- a/vim/plugin/strip_trailing_whitespace.vim +++ b/vim/plugin/strip_trailing_whitespace.vim @@ -30,11 +30,11 @@ function! s:StripTrailingWhitespace() " Replace the line with a subsitution of its text stripping extraneous " whitespace - call setline(l:li, substitute(l:line, '\m\C\s\+$', '', 'g')) + call setline(l:li, substitute(l:line, '\s\+$', '', 'g')) " If this line has any non-whitespace characters on it, update l:lw with " its index - if l:line =~# '\m\C\S' + if l:line =~# '\S' let l:lw = l:li endif |