Problem: When a candidate gets truncated to MATCH_MAX_LEN and ends up the same length as the needle, the n == m shortcut would return SCORE_MAX with positions 0..n-1, even if the strings actually differ.
eg: matchfuzzypos(['x' .. repeat('a',1024)], repeat('a',1024))
Solution: Only use the shortcut if the truncated strings are truly equal. Otherwise, fall back to regular matching.
https://github.com/vim/vim/pull/20475
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()