diff --git a/autoload/limelight.vim b/autoload/limelight.vim index 0a4cd86..3940770 100644 --- a/autoload/limelight.vim +++ b/autoload/limelight.vim @@ -138,7 +138,8 @@ function! s:dim(coeff) let synid = synIDtrans(hlID('Normal')) let fg = synIDattr(synid, 'fg#') let bg = synIDattr(synid, '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') let dim = g:limelight_conceal_guifg