Check bg# attribute instead of bg (#92)

On GVim:
  hi StatusLine guibg=red
  echo synIDattr(synIDtrans(hlID('StatusLine')), 'bg')
    " red
  echo synIDattr(synIDtrans(hlID('StatusLine')), 'bg#')
    " #ff0000
This commit is contained in:
Junegunn Choi
2016-02-15 10:40:13 +09:00
parent 8faad54942
commit cb697998cc

View File

@@ -106,7 +106,7 @@ function! s:resize_pads()
endfunction
function! s:tranquilize()
let bg = s:get_color('Normal', 'bg')
let bg = s:get_color('Normal', 'bg#')
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
\ 'StatusLine', 'StatusLineNC', 'SignColumn']
" -1 on Vim / '' on GVim