[vim/vim] matchfuzzypos() returns garbage positions for long candidates (PR #20435)

4 views
Skip to first unread message

glepnir

unread,
Jun 6, 2026, 3:46:32 AM (3 days ago) Jun 6
to vim/vim, Subscribed

Problem: a needle that only matches past char 1024 gives an INT_MIN + 1 score
with unset positions, e.g. matchfuzzypos([repeat('a',1024)..'z'], 'az').
Solution: drop the candidate when match_positions() returns SCORE_MIN.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20435

Commit Summary

  • 68eef4f matchfuzzypos() returns garbage positions for long candidates

File Changes

(2 files)

Patch Links:


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.Message ID: <vim/vim/pull/20435@github.com>

Christian Brabandt

unread,
Jun 7, 2026, 2:40:59 PM (2 days ago) Jun 7
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20435)

Thanks, the test actually should use CheckFeature multi_byte but that is now always included, so we can skip it


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.Message ID: <vim/vim/pull/20435/c4643653106@github.com>

Reply all
Reply to author
Forward
0 new messages