patch 9.1.0996: ComplMatchIns may highlight wrong text

Problem:  ComplMatchIns may highlight wrong text
Solution: don't highlight in case of fuzzy match,
          skip-highlight when not inserting anything
          (glepnir)

closes: #16404

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
glepnir
2025-01-08 18:30:45 +01:00
committed by Christian Brabandt
parent 1718e7d07e
commit e890887b80
6 changed files with 62 additions and 2 deletions

View File

@ -262,7 +262,8 @@ static char *(highlight_init_both[]) = {
"default link PmenuMatchSel PmenuSel",
"default link PmenuExtra Pmenu",
"default link PmenuExtraSel PmenuSel",
CENT("ComplMatchIns cterm=NONE", "ComplMatchIns gui=NONE"),
CENT("ComplMatchIns ctermfg=DarkGrey cterm=NONE",
"ComplMatchIns guifg=DarkGrey gui=NONE"),
CENT("Normal cterm=NONE", "Normal gui=NONE"),
NULL
};