aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/plugin/cursorline_current.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/plugin/cursorline_current.vim b/vim/plugin/cursorline_current.vim
index a076bd97..d17fc769 100644
--- a/vim/plugin/cursorline_current.vim
+++ b/vim/plugin/cursorline_current.vim
@@ -44,7 +44,8 @@ function! s:Load() abort
" Iterate through all the windows and suspend all but the current one
for l:wnum in range(1, winnr('$'))
if l:wnum != l:wcur
- execute l:wnum . 'windo call s:Suspend()'
+ execute l:wnum . 'wincmd w'
+ call s:Suspend()
endif
endfor