aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/cursorline_current.vim2
1 files changed, 2 insertions, 0 deletions
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 *