Skip to content

Commit 74a6e65

Browse files
author
Dave Smith
committed
Suppres error output if there is now whitespace to remove
1 parent fefcb78 commit 74a6e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/python/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ endif
135135
if pymode#Option('utils_whitespaces')
136136
function PyModeTrimEndWhiteSpace()
137137
let cursor_pos = getpos('.')
138-
%s/\s\+$//
138+
:silent! %s/\s\+$//
139139
call setpos('.', cursor_pos)
140140
endfunction
141141
au BufWritePre <buffer> call PyModeTrimEndWhiteSpace()

0 commit comments

Comments
 (0)