mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-08 11:23:51 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user