0
0
mirror of https://github.com/vim/vim.git synced 2025-11-16 23:24:03 -05:00

patch 9.1.1005: completion text is highlighted even with no pattern found

Problem:  completion text is highlighted even with no pattern found
Solution: use ins_compl_leader_len() instead of checking
          compl_leader.length (glepnir)

closes: #16422

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
glepnir
2025-01-11 16:42:50 +01:00
committed by Christian Brabandt
parent ebb08d5913
commit 9fddb8ae77
4 changed files with 30 additions and 1 deletions

View File

@@ -927,7 +927,7 @@ ins_compl_col_range_attr(int col)
if ((get_cot_flags() & COT_FUZZY))
return -1;
if (col >= (compl_col + (int)compl_leader.length) && col < compl_ins_end_col)
if (col >= (compl_col + (int)ins_compl_leader_len()) && col < compl_ins_end_col)
return syn_name2attr((char_u *)"ComplMatchIns");
return -1;