From c94bac4ee49188a00d51e0fd9a6a5baa7014f903 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 14 Mar 2016 16:02:52 +0100 Subject: [PATCH] Fixes #3980: relax overlapping operations check in cursor.ts --- src/vs/editor/common/controller/cursor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/controller/cursor.ts b/src/vs/editor/common/controller/cursor.ts index 02670c2d352..31ae0b2e027 100644 --- a/src/vs/editor/common/controller/cursor.ts +++ b/src/vs/editor/common/controller/cursor.ts @@ -601,7 +601,7 @@ export class Cursor extends EventEmitter { previousOp = operations[i - 1]; currentOp = operations[i]; - if (previousOp.range.getStartPosition().isBeforeOrEqual(currentOp.range.getEndPosition())) { + if (previousOp.range.getStartPosition().isBefore(currentOp.range.getEndPosition())) { if (previousOp.identifier.major > currentOp.identifier.major) { // previousOp loses the battle -- GitLab