aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/cursorline_current.vim4
1 files 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