diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 15:39:28 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 15:39:28 +1300 |
commit | 10830752b427c049b239ca78130ef36a4d183e64 (patch) | |
tree | 52a3694cd664ca62af24054ddb7b0ffc2c3da8d0 | |
parent | Merge branch 'release/v0.9.0' into develop (diff) | |
parent | Don't report lines deleted after stripping space (diff) | |
download | dotfiles-10830752b427c049b239ca78130ef36a4d183e64.tar.gz dotfiles-10830752b427c049b239ca78130ef36a4d183e64.zip |
Merge branch 'feature/silent-whit...' into develop
* feature/silent-whitespace:
Don't report lines deleted after stripping space
-rw-r--r-- | vim/plugin/strip_trailing_whitespace.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim index 9a9d3d95..ceeaec7c 100644 --- a/vim/plugin/strip_trailing_whitespace.vim +++ b/vim/plugin/strip_trailing_whitespace.vim @@ -54,7 +54,7 @@ function! s:StripTrailingWhitespace() let l:cc = col('.') " Delete the lines, which will move the cursor - execute l:lw + 1 . ',$ delete' + silent execute l:lw + 1 . ',$ delete' " Return the cursor to the saved position call cursor(l:lc, l:cc) |