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>
diff --git a/src/highlight.c b/src/highlight.c
index a4b2d48..628ceb2 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -262,7 +262,7 @@
"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
};