diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 21:12:50 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 21:14:05 +1200 |
commit | 6cfdbabc7586b2a16bd1970341d593871defcc5c (patch) | |
tree | d767632fbb6af919b509afd7e37638bb6b467e3c | |
parent | Run load and restore functions only with multiwin (diff) | |
download | vim-cursorline-current-6cfdbabc7586b2a16bd1970341d593871defcc5c.tar.gz vim-cursorline-current-6cfdbabc7586b2a16bd1970341d593871defcc5c.zip |
Remove BufEnter hook
Let's see if this bug still shows up.
-rw-r--r-- | plugin/cursorline_current.vim | 4 |
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 |