From b64b19ef433e6d6dee89b7f6253d2c392390f38a Mon Sep 17 00:00:00 2001 From: donald93 Date: Thu, 11 Oct 2018 22:26:35 -0400 Subject: [PATCH] fixes #2752 --- src/configuration/remapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configuration/remapper.ts b/src/configuration/remapper.ts index 850537769eb..658a884fbb4 100644 --- a/src/configuration/remapper.ts +++ b/src/configuration/remapper.ts @@ -107,7 +107,7 @@ export class Remapper implements IRemapper { await vimState.historyTracker.undoAndRemoveChanges( Math.max(0, numCharsToRemove * vimState.allCursors.length) ); - vimState.cursorPosition = vimState.cursorPosition.getLeft(numCharsToRemove); + vimState.allCursors = vimState.allCursors.map(x => x.withNewStop(x.stop.getLeft(numCharsToRemove))); } // We need to remove the keys that were remapped into different keys