aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-05 15:39:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-05 15:39:28 +1300
commit10830752b427c049b239ca78130ef36a4d183e64 (patch)
tree52a3694cd664ca62af24054ddb7b0ffc2c3da8d0
parent24c57ffbe6d9579cc31e847b8a71307c0951698e (diff)
parent94b692892e646970fd8e9fb66a55513b9f23a910 (diff)
downloaddotfiles-10830752b427c049b239ca78130ef36a4d183e64.tar.gz
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.vim2
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)