mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
440746158c
commit
8e56747fd2
@@ -4470,7 +4470,8 @@ typedef struct
|
||||
char_u *pum_kind; // extra kind text (may be truncated)
|
||||
char_u *pum_extra; // extra menu text (may be truncated)
|
||||
char_u *pum_info; // extra info
|
||||
int pum_score; // fuzzy match score
|
||||
int pum_score; // fuzzy match score
|
||||
int pum_idx; // index of item before sorting by score
|
||||
} pumitem_T;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user