From 0b809e129cd2266ad787bb8d3a1b06962757b6a6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 21:26:49 +1200 Subject: Restore BufEnter hook The bug still shows up. Opening a window a second time onto an existing buffer doesn't restore the cursorline. --- plugin/cursorline_current.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim index c8de8ef..a7704e7 100644 --- a/plugin/cursorline_current.vim +++ b/plugin/cursorline_current.vim @@ -15,6 +15,8 @@ augroup cursorline_current autocmd! autocmd VimEnter * \ if winnr('$') > 1 | call cursorline_current#Load() | endif + autocmd BufEnter * + \ if winnr('$') > 1 | call cursorline_current#Restore() | endif autocmd InsertLeave,WinEnter,FocusGained * \ call cursorline_current#Restore() autocmd InsertEnter,WinLeave,FocusLost * -- cgit v1.2.3