diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 21:29:57 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 21:29:57 +1200 |
commit | dcdda2b72552117437ca2a24cdde9d78ee7dd8b7 (patch) | |
tree | 2f6b828a7f28a969aec1a41416a9c8ff62489f1c | |
parent | Restore BufEnter hook (diff) | |
download | vim-cursorline-current-dcdda2b72552117437ca2a24cdde9d78ee7dd8b7.tar.gz vim-cursorline-current-dcdda2b72552117437ca2a24cdde9d78ee7dd8b7.zip |
Correct winnr() call
It doesn't take an argument like '.' for the current window.
-rw-r--r-- | autoload/cursorline_current.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/cursorline_current.vim b/autoload/cursorline_current.vim index c8bec6f..648d633 100644 --- a/autoload/cursorline_current.vim +++ b/autoload/cursorline_current.vim @@ -12,6 +12,6 @@ endfunction " Call cursorline_current#Suspend() on all windows besides the current one function! cursorline_current#Load() abort let wcur = winnr() - windo if winnr('.') != wcur | call cursorline_current#Suspend() | endif + windo if winnr() != wcur | call cursorline_current#Suspend() | endif execute wcur . 'wincmd w' endfunction |