From e6b2ae1494154961d8a73ef870f9dd6695d3e290 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 18 Jun 2017 23:24:20 +0800 Subject: [PATCH] Fix statuline color of inactive window --- autoload/SpaceVim/layers/core/statusline.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/core/statusline.vim b/autoload/SpaceVim/layers/core/statusline.vim index ac80e156d..789988cb8 100644 --- a/autoload/SpaceVim/layers/core/statusline.vim +++ b/autoload/SpaceVim/layers/core/statusline.vim @@ -245,7 +245,7 @@ function! s:active() abort endfunction function! s:inactive() abort - return '%#SpaceVim_statusline_a#' . s:winnr() . '%#SpaceVim_statusline_a_SpaceVim_statusline_b#' + return '%#SpaceVim_statusline_ia#' . s:winnr() . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' \ . '%#SpaceVim_statusline_b#' . s:filename() . '' \ . ' ' . &filetype . ' ' \ . s:modes() . '' @@ -285,12 +285,14 @@ function! SpaceVim#layers#core#statusline#def_colors() abort endtry let s:colors_template = t exe 'hi! SpaceVim_statusline_a ctermbg=' . t[0][2] . ' ctermfg=' . t[0][3] . ' guibg=' . t[0][1] . ' guifg=' . t[0][0] + exe 'hi! SpaceVim_statusline_ia ctermbg=' . t[0][2] . ' ctermfg=' . t[0][3] . ' guibg=' . t[0][1] . ' guifg=' . t[0][0] exe 'hi! SpaceVim_statusline_b ctermbg=' . t[1][2] . ' ctermfg=' . t[1][3] . ' guibg=' . t[1][1] . ' guifg=' . t[1][0] exe 'hi! SpaceVim_statusline_c ctermbg=' . t[2][2] . ' ctermfg=' . t[2][3] . ' guibg=' . t[2][1] . ' guifg=' . t[2][0] exe 'hi! SpaceVim_statusline_z ctermbg=' . t[3][1] . ' ctermfg=' . t[3][1] . ' guibg=' . t[3][0] . ' guifg=' . t[3][0] hi! SpaceVim_statusline_error ctermbg=003 ctermfg=Black guibg=#504945 guifg=#fb4934 gui=bold hi! SpaceVim_statusline_warn ctermbg=003 ctermfg=Black guibg=#504945 guifg=#fabd2f gui=bold call s:HI.hi_separator('SpaceVim_statusline_a', 'SpaceVim_statusline_b') + call s:HI.hi_separator('SpaceVim_statusline_ia', 'SpaceVim_statusline_b') call s:HI.hi_separator('SpaceVim_statusline_b', 'SpaceVim_statusline_c') call s:HI.hi_separator('SpaceVim_statusline_b', 'SpaceVim_statusline_z') call s:HI.hi_separator('SpaceVim_statusline_c', 'SpaceVim_statusline_z')