Skip to content

Commit

Permalink
Fixes #51390
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jun 12, 2018
1 parent 7c80edd commit f01b032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/contrib/multicursor/multicursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit f01b032

Please sign in to comment.