mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 05:18:16 +00:00
vim-patch:7.4.318 #968
Problem: Check for whether a highlight group has settings ignores fg and bg color settings. Solution: Also check cterm and GUI color settings. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=5c47dacf397c1c65d2dfc237b3ff395c66ec3d4d
This commit is contained in:

committed by
Justin M. Keyes

parent
b6da1ac339
commit
16a04bae0a
@@ -6687,6 +6687,8 @@ static int hl_has_settings(int idx, int check_link)
|
||||
{
|
||||
return HL_TABLE()[idx].sg_term_attr != 0
|
||||
|| HL_TABLE()[idx].sg_cterm_attr != 0
|
||||
|| HL_TABLE()[idx].sg_cterm_fg != 0
|
||||
|| HL_TABLE()[idx].sg_cterm_bg != 0
|
||||
|| (check_link && (HL_TABLE()[idx].sg_set & SG_LINK));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user