We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clearmatches()
1 parent fb5b0b8 commit ac889fcCopy full SHA for ac889fc
plugin/better-whitespace.vim
@@ -171,7 +171,7 @@ function! <SID>SetupAutoCommands()
171
autocmd!
172
173
if index(g:better_whitespace_filetypes_blacklist, &ft) >= 0
174
- silent! call clearmatches()
+ match ExtraWhitespace ''
175
return
176
endif
177
@@ -195,7 +195,7 @@ function! <SID>SetupAutoCommands()
195
" Highlight all whitespace when exiting insert mode
196
autocmd InsertLeave,BufReadPost * match ExtraWhitespace /\s\+$/
197
" Clear whitespace highlighting when leaving buffer
198
- autocmd BufWinLeave * call clearmatches()
+ autocmd BufWinLeave * match ExtraWhitespace ''
199
else
200
" Highlight extraneous whitespace at the end of lines, but not the
201
" current line
0 commit comments