From 6189df4132eb9247513db3ddc69025e420e864dd Mon Sep 17 00:00:00 2001 From: gcrtnst <52910071+gcrtnst@users.noreply.github.com> Date: Sat, 26 Oct 2024 23:56:12 +0900 Subject: [PATCH] Fix duplicate autocmd registration for CursorMovedI event --- plugin/better-whitespace.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin/better-whitespace.vim b/plugin/better-whitespace.vim index 402a360..6fdae55 100644 --- a/plugin/better-whitespace.vim +++ b/plugin/better-whitespace.vim @@ -364,9 +364,6 @@ function! SetupAutoCommands() " Using syntax: clear whitespace highlighting when leaving buffer autocmd BufWinLeave if expand("") == expand("%") | call ClearHighlighting() | endif - " Do not highlight whitespace on current line in insert mode - autocmd CursorMovedI call HighlightEOLWhitespaceExceptCurrentLine() - " Do not highlight whitespace on current line in normal mode? if g:current_line_whitespace_disabled_hard == 1 autocmd CursorMoved call HighlightEOLWhitespaceExceptCurrentLine()