mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-20 17:43:39 -05:00
Remove redundant synIDattr calls
Commits changes requested in https://github.com/junegunn/limelight.vim/pull/71#discussion_r826716708
This commit is contained in:
@@ -137,11 +137,8 @@ endfunction
|
|||||||
function! s:dim(coeff)
|
function! s:dim(coeff)
|
||||||
let synid = synIDtrans(hlID('Normal'))
|
let synid = synIDtrans(hlID('Normal'))
|
||||||
let fg = synIDattr(synid, 'fg#')
|
let fg = synIDattr(synid, 'fg#')
|
||||||
if synIDattr(synid, 'bg#') == 'none'
|
|
||||||
let bg = 0
|
|
||||||
else
|
|
||||||
let bg = synIDattr(synid, 'bg#')
|
let bg = synIDattr(synid, 'bg#')
|
||||||
endif
|
let bg = bg == 'none' ? 0 : bg
|
||||||
|
|
||||||
if has('gui_running') || has('termguicolors') && &termguicolors || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR
|
if has('gui_running') || has('termguicolors') && &termguicolors || has('nvim') && $NVIM_TUI_ENABLE_TRUE_COLOR
|
||||||
if a:coeff < 0 && exists('g:limelight_conceal_guifg')
|
if a:coeff < 0 && exists('g:limelight_conceal_guifg')
|
||||||
|
|||||||
Reference in New Issue
Block a user