[vim/vim] keep list order between equal fuzzy scores (PR #21443)

6 views
Skip to first unread message

glepnir

unread,
Oct 4, 2026, 4:33:49 AM (3 days ago) Oct 4
to vim/vim, Subscribed

What does this change do?

Equal fuzzy scores preserve the previous sort order, making results depend on what was typed before.

Commit message

Problem:
Equal fuzzy scores preserve the previous sort order, making results depend on what was typed before.

Solution:
Number matches in list order when first scored, and use that to break ties.

AI assistance

  • No AI was used

Checklist

  • The commit message follows the Problem/Solution form above
  • Tests were added, existing tests cover the change, or the change cannot be tested (say why)
  • No update is needed

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

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

Commit Summary

  • e324f0e keep list order between equal fuzzy scores

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/21443@github.com>

Reply all
Reply to author
Forward
0 new messages