From 6cfdbabc7586b2a16bd1970341d593871defcc5c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 21:12:50 +1200 Subject: Remove BufEnter hook Let's see if this bug still shows up. --- plugin/cursorline_current.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim index ff2e7e5..c8de8ef 100644 --- a/plugin/cursorline_current.vim +++ b/plugin/cursorline_current.vim @@ -16,7 +16,7 @@ augroup cursorline_current autocmd VimEnter * \ if winnr('$') > 1 | call cursorline_current#Load() | endif autocmd InsertLeave,WinEnter,FocusGained * - \ if winnr('$') > 1 | call cursorline_current#Restore() | endif - autocmd InsertEnter,WinLeave,FocusLost,BufEnter * + \ call cursorline_current#Restore() + autocmd InsertEnter,WinLeave,FocusLost * \ call cursorline_current#Suspend() augroup END -- cgit v1.2.3