diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-05-17 07:47:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-16 23:47:20 +0000 |
| commit | ec5f054dc957c4ecd8f6e156dda070174909f495 (patch) | |
| tree | 0859e145f9c1412f9a619af1df268c83fd8012d6 /runtime/lua/vim/_defaults.lua | |
| parent | 6af1b7e5e8dae62857ad1239525a7954f605bfd1 (diff) | |
| download | rneovim-ec5f054dc957c4ecd8f6e156dda070174909f495.tar.gz rneovim-ec5f054dc957c4ecd8f6e156dda070174909f495.tar.bz2 rneovim-ec5f054dc957c4ecd8f6e156dda070174909f495.zip | |
vim-patch:9.1.1395: search_stat not reset when pattern differs in case (#34058)
Problem: search_stat not reset when pattern differs in case
(tahzibijafar)
Solution: use STRNCMP instead of MB_STRNICMP macro
There was a long standing todo comment, that using MB_STRNICMP is wrong.
So let's change it to STRNCMP() instead. Even if it not handle
multi-byte characters correctly, then Vim will rather recompute the
search stat, instead of re-using the old (and possibly wrong) value.
fixes: vim/vim#17312
closes: vim/vim#17314
https://github.com/vim/vim/commit/670d0c1468b7ece958acf3b03de9e202e612804a
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
0 files changed, 0 insertions, 0 deletions