提交 51c5e12c 编写于 作者: A Alex Dima

Fixes #51390

上级 32202834
......@@ -834,7 +834,7 @@ export class SelectionHighlighter extends Disposable implements IEditorContribut
const cmp = Range.compareRangesUsingStarts(match, selections[j]);
if (cmp < 0) {
// match is before sel
if (!Range.areIntersecting(match, selections[j])) {
if (selections[j].isEmpty() || !Range.areIntersecting(match, selections[j])) {
matches.push(match);
}
i++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册