blob: 591550fd1e95806bb112e3545ddcc59e5c56d4b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
" Reset window-global value for 'cursorline' based on current colorscheme name
function! colorscheme#UpdateCursorline(colors_name, list) abort
let l:tab = tabpagenr()
let l:win = winnr()
tabdo windo let &g:cursorline = index(a:list, a:colors_name) >= 0
\| silent doautocmd WinEnter,WinLeave
execute l:tab . 'tabnext'
execute l:win . 'wincmd w'
\| silent doautocmd WinEnter
endfunction
|