mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-11 04:43: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
|
endfunction
|
||||||
|
|
||||||
function! s:tranquilize()
|
function! s:tranquilize()
|
||||||
let bg = s:get_color('Normal', 'bg')
|
let bg = s:get_color('Normal', 'bg#')
|
||||||
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
|
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
|
||||||
\ 'StatusLine', 'StatusLineNC', 'SignColumn']
|
\ 'StatusLine', 'StatusLineNC', 'SignColumn']
|
||||||
" -1 on Vim / '' on GVim
|
" -1 on Vim / '' on GVim
|
||||||
|
|||||||
Reference in New Issue
Block a user