Skip to content

Commit c67a6c0

Browse files
committed
Fix duplicate autocmd registration for CursorMovedI event
1 parent 86a0579 commit c67a6c0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

plugin/better-whitespace.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,6 @@ function! <SID>SetupAutoCommands()
361361
" Using syntax: clear whitespace highlighting when leaving buffer
362362
autocmd BufWinLeave <buffer> if expand("<afile>") == expand("%") | call <SID>ClearHighlighting() | endif
363363

364-
" Do not highlight whitespace on current line in insert mode
365-
autocmd CursorMovedI <buffer> call <SID>HighlightEOLWhitespaceExceptCurrentLine()
366-
367364
" Do not highlight whitespace on current line in normal mode?
368365
if g:current_line_whitespace_disabled_hard == 1
369366
autocmd CursorMoved <buffer> call <SID>HighlightEOLWhitespaceExceptCurrentLine()

0 commit comments

Comments
 (0)