mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
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:
committed by
Christian Brabandt
parent
1718e7d07e
commit
e890887b80
@@ -924,7 +924,10 @@ ins_compl_insert_bytes(char_u *p, int len)
|
||||
int
|
||||
ins_compl_col_range_attr(int col)
|
||||
{
|
||||
if (col >= compl_col && col < compl_ins_end_col)
|
||||
if ((get_cot_flags() & COT_FUZZY))
|
||||
return -1;
|
||||
|
||||
if (col >= (compl_col + (int)compl_leader.length) && col < compl_ins_end_col)
|
||||
return syn_name2attr((char_u *)"ComplMatchIns");
|
||||
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user