From 432fceabe5443a202917f73f4f67aa22d53808d5 Mon Sep 17 00:00:00 2001 From: gingkapls <73906888+gingkapls@users.noreply.github.com> Date: Thu, 17 Mar 2022 11:49:32 +0530 Subject: [PATCH] Fix the logic Fixes calculating the bg for `Normal` highlight group depending on the ctermbg value --- autoload/limelight.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/limelight.vim b/autoload/limelight.vim index 70ce19c..3940770 100644 --- a/autoload/limelight.vim +++ b/autoload/limelight.vim @@ -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')