mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +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#17314670d0c1468
Co-authored-by: Christian Brabandt <cb@256bit.org> (cherry picked from commitec5f054dc9
)