From 9e8d9f68dfe9b19eba343f796ffd16933a4dc77d Mon Sep 17 00:00:00 2001 From: itchyny Date: Wed, 5 Oct 2016 08:31:47 +0900 Subject: [PATCH] fix lightline#colorscheme(): convert colors for Windows before lightline#highlight (fix #191) --- autoload/lightline.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index 14d1d2a..2bb89b8 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -2,7 +2,7 @@ " Filename: autoload/lightline.vim " Author: itchyny " License: MIT License -" Last Change: 2016/09/04 13:01:40. +" Last Change: 2016/10/05 08:00:00. " ============================================================================= let s:save_cpo = &cpo @@ -191,10 +191,6 @@ function! lightline#colorscheme() abort let s:lightline.colorscheme = 'default' let s:lightline.palette = g:lightline#colorscheme#{s:lightline.colorscheme}#palette finally - let s:highlight = {} - call lightline#highlight('normal') - call lightline#link() - let s:_ = 0 if has('win32') && !has('gui_running') && &t_Co < 256 for u in values(s:lightline.palette) for v in values(u) @@ -204,6 +200,10 @@ function! lightline#colorscheme() abort endfor endfor endif + let s:highlight = {} + call lightline#highlight('normal') + call lightline#link() + let s:_ = 0 endtry endfunction