diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 21:11:34 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-30 21:11:34 +1200 |
commit | 63012812b9f309954cfccfbdcde06d4c65cb4774 (patch) | |
tree | 4ccb1b7d5e8ad1eb6b0b933c48f88cc31ef42210 | |
parent | Merge autocmd definitions (diff) | |
download | vim-cursorline-current-63012812b9f309954cfccfbdcde06d4c65cb4774.tar.gz vim-cursorline-current-63012812b9f309954cfccfbdcde06d4c65cb4774.zip |
Pare down variable names and usage
-rw-r--r-- | autoload/cursorline_current.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/autoload/cursorline_current.vim b/autoload/cursorline_current.vim index 36bb210..0c56c8d 100644 --- a/autoload/cursorline_current.vim +++ b/autoload/cursorline_current.vim @@ -1,13 +1,12 @@ " Suspend 'cursorline' when a window is inactive or inserting function! cursorline_current#Suspend() abort - let w:cursorline_current = &l:cursorline + let w:cursorline = &l:cursorline let &l:cursorline = 0 endfunction " Restore 'cursorline' when a window is active and non-insert function! cursorline_current#Restore() abort - let &l:cursorline = get(w:, 'cursorline_current', &g:cursorline) - let w:cursorline_current = &l:cursorline + let &l:cursorline = get(w:, 'cursorline', &g:cursorline) endfunction " Call cursorline_current#Suspend() on all windows besides the current one |