Skip to content

Commit 6189df4

Browse files
committed
Fix duplicate autocmd registration for CursorMovedI event
1 parent de99b55 commit 6189df4

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
@@ -364,9 +364,6 @@ function! <SID>SetupAutoCommands()
364364
" Using syntax: clear whitespace highlighting when leaving buffer
365365
autocmd BufWinLeave <buffer> if expand("<afile>") == expand("%") | call <SID>ClearHighlighting() | endif
366366

367-
" Do not highlight whitespace on current line in insert mode
368-
autocmd CursorMovedI <buffer> call <SID>HighlightEOLWhitespaceExceptCurrentLine()
369-
370367
" Do not highlight whitespace on current line in normal mode?
371368
if g:current_line_whitespace_disabled_hard == 1
372369
autocmd CursorMoved <buffer> call <SID>HighlightEOLWhitespaceExceptCurrentLine()

0 commit comments

Comments
 (0)