mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 23:05:41 +00:00
Problem: negative matchfuzzy scores although there is a match
(Maxim Kim)
Solution: reset the score if a match has been found but the score is
negative (Girish Palya)
The fuzzy algorithm may miss some matches in long strings due to recursion
limits. As a result, the score can end up negative even when matches exist.
In such cases, reset the score to ensure it is non-negative.
fixes: #vim/vim#17449
closes: vim/vim#17469
328332b0b0
Co-authored-by: Girish Palya <girishji@gmail.com>