diff options
-rw-r--r-- | autoload/cursorline_current.vim | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/autoload/cursorline_current.vim b/autoload/cursorline_current.vim index 0c56c8d..c8bec6f 100644 --- a/autoload/cursorline_current.vim +++ b/autoload/cursorline_current.vim @@ -11,20 +11,7 @@ endfunction " Call cursorline_current#Suspend() on all windows besides the current one function! cursorline_current#Load() abort - - " Cache current window index let wcur = winnr() - - " Iterate through all the windows and suspend all but the current one - for wnum in range(1, winnr('$')) - if wnum == wcur - continue - endif - execute wnum . 'wincmd w' - call cursorline_current#Suspend() - endfor - - " Return to the window in which we started + windo if winnr('.') != wcur | call cursorline_current#Suspend() | endif execute wcur . 'wincmd w' - endfunction |