mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-19 09:03:40 -05:00
Fix the logic
Fixes calculating the bg for `Normal` highlight group depending on the ctermbg value
This commit is contained in:
@@ -138,7 +138,7 @@ function! s:dim(coeff)
|
||||
let synid = synIDtrans(hlID('Normal'))
|
||||
let fg = synIDattr(synid, 'fg#')
|
||||
let bg = synIDattr(synid, 'bg#')
|
||||
let bg = bg == 'none' ? 0 : bg
|
||||
let bg = bg == 'none' ? bg : 0
|
||||
|
||||
if has('gui_running') || has('termguicolors') && &termguicolors || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR
|
||||
if a:coeff < 0 && exists('g:limelight_conceal_guifg')
|
||||
|
||||
Reference in New Issue
Block a user