Fix the logic

Fixes calculating the bg for `Normal` highlight group depending on the ctermbg value
This commit is contained in:
gingkapls
2022-03-17 11:49:32 +05:30
committed by GitHub
parent cebb723753
commit 432fceabe5

View File

@@ -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')