diff --git a/src/vs/editor/contrib/multicursor/multicursor.ts b/src/vs/editor/contrib/multicursor/multicursor.ts index c47b0080fbf87cb625ba2e5e0185f138b3a06a21..0517d7061a563732a64b9198e151c719f0d2805a 100644 --- a/src/vs/editor/contrib/multicursor/multicursor.ts +++ b/src/vs/editor/contrib/multicursor/multicursor.ts @@ -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++;