patch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text

Problem:  ComplMatchIns highlight doesn't end after inserted text.
Solution: Handle ComplMatchIns highlight more like search highlight.
          Fix off-by-one error. Handle deleting text properly.
          (zeertzjq)

closes: #16244

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-12-18 21:12:25 +01:00
committed by Christian Brabandt
parent beccb33977
commit f25d8f9312
16 changed files with 283 additions and 19 deletions

View File

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