mirror of
https://github.com/vim/vim.git
synced 2025-11-10 10:47:23 -05:00
patch 9.1.1006: PmenuMatch completion highlight can be combined
Problem: PmenuMatch completion highlight can be combined
Solution: Combine highlight groups PmenuMatch with Pmenu and
PmenuMatchSel with PmenuSel (glepnir)
fixes: #15563
closes: #16408
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
9fddb8ae77
commit
9eff3ee818
@@ -450,13 +450,18 @@ pum_compute_text_attrs(char_u *text, hlf_T hlf, int user_hlattr)
|
||||
if (char_pos == ((int_u *)ga->ga_data)[i])
|
||||
{
|
||||
new_attr = highlight_attr[is_select ? HLF_PMSI : HLF_PMNI];
|
||||
new_attr = hl_combine_attr(highlight_attr[hlf], new_attr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (matched_start && ptr < text + leader_len)
|
||||
{
|
||||
new_attr = highlight_attr[is_select ? HLF_PMSI : HLF_PMNI];
|
||||
new_attr = hl_combine_attr(highlight_attr[hlf], new_attr);
|
||||
}
|
||||
|
||||
new_attr = hl_combine_attr(highlight_attr[HLF_PNI], new_attr);
|
||||
if (user_hlattr > 0)
|
||||
new_attr = hl_combine_attr(new_attr, user_hlattr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user