]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0484: Sorting of completeopt+=fuzzy is not stable v9.1.0484
authorzeertzjq <zeertzjq@outlook.com>
Fri, 14 Jun 2024 18:04:42 +0000 (20:04 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 14 Jun 2024 18:04:42 +0000 (20:04 +0200)
commit8e56747fd26b3b040b6fcbfb6be41b7d5922c6b5
treedb8335d4996d96535286f9183d39f7fa68d181a0
parent440746158ce0fec2880ccacc03f39dbc954c5543
patch 9.1.0484: Sorting of completeopt+=fuzzy is not stable

Problem:  Sorting of completeopt+=fuzzy is not stable.
Solution: Compare original indexes when scores are the same.
          (zeertzjq)

closes: #14988

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/insexpand.c
src/structs.h
src/testdir/test_ins_complete.vim
src/version.c