mirror of
https://github.com/neovim/neovim.git
synced 2026-09-25 23:08:29 +00:00
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>