mirror of
https://github.com/vim/vim.git
synced 2025-11-10 10:47:23 -05:00
patch 9.1.0496: matched text is highlighted case-sensitively
Problem: matched text is highlighted case-sensitively
Solution: use MB_STRNICMP, update highlighting when the base changes
(glepnir)
fixes: #15021
closes: #15023
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
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
d8c9340fc6
commit
f189138b39
@@ -461,7 +461,7 @@ pum_compute_text_attrs(char_u *text, hlf_T hlf)
|
||||
if (in_fuzzy)
|
||||
ga = fuzzy_match_str_with_pos(text, leader);
|
||||
else
|
||||
matched_start = STRNCMP(text, leader, leader_len) == 0;
|
||||
matched_start = MB_STRNICMP(text, leader, leader_len) == 0;
|
||||
|
||||
while (*ptr != NUL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user