提交 63c71c6b 编写于 作者: J Joao Moreno

fixes #66677

上级 5a41fdd8
......@@ -386,7 +386,13 @@ export function createMatches(score: undefined | FuzzyScore): IMatch[] {
if (mask > matches) {
break;
} else if (matches & mask) {
res.push({ start: pos, end: pos + 1 });
const last = res[res.length - 1];
if (last && last.end === pos) {
last.end = pos + 1;
} else {
res.push({ start: pos, end: pos + 1 });
}
}
}
return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册