Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74a6e65

Browse files
author
Dave Smith
committed
Suppres error output if there is now whitespace to remove
1 parentfefcb78 commit74a6e65

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
ifpymode#Option('utils_whitespaces')
136136
functionPyModeTrimEndWhiteSpace()
137137
let cursor_pos=getpos('.')
138-
%s/\s\+$//
138+
:silent!%s/\s\+$//
139139
callsetpos('.', cursor_pos)
140140
endfunction
141141
auBufWritePre<buffer>callPyModeTrimEndWhiteSpace()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp