Merge pull request #98127 from HaoboGu/master

fix #98102
This commit is contained in:
Johannes Rieken 2020-05-19 08:38:34 +02:00 committed by GitHub
commit 4324517948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ export abstract class Memory {
return 0;
}
let topScore = items[0].score[0];
for (let i = 1; i < items.length; i++) {
for (let i = 0; i < items.length; i++) {
const { score, completion: suggestion } = items[i];
if (score[0] !== topScore) {
// stop when leaving the group of top matches