diff options
author | glepnir <glephunter@gmail.com> | 2024-06-17 18:35:25 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-17 18:35:25 +0200 |
commit | f189138b39a11ed5cf3adea6610469b478841aba (patch) | |
tree | daf1676b4e5ea491b7a370467a24b8181cc21827 /src/insexpand.c | |
parent | d8c9340fc67ca19f82ec3e77ec38296424e758cf (diff) |
patch 9.1.0496: matched text is highlighted case-sensitivelyv9.1.0496
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>
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index 28e4d344ed..c673df927c 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -1448,7 +1448,7 @@ ins_compl_show_pum(void) char_u * ins_compl_leader(void) { - return compl_leader; + return compl_leader != NULL ? compl_leader : compl_orig_text; } /* |