From a8a277fe0e3d0ff4b7655e29b706a7d3661807c9 Mon Sep 17 00:00:00 2001 From: kimitake Date: Sun, 29 Nov 2015 07:57:39 -0800 Subject: [PATCH] move cursor position after getting normal mode --- src/mode/modeNormal.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mode/modeNormal.ts b/src/mode/modeNormal.ts index 86ff15150f3..4ddd9cf68c5 100644 --- a/src/mode/modeNormal.ts +++ b/src/mode/modeNormal.ts @@ -26,7 +26,10 @@ export default class CommandMode extends Mode { } ShouldBeActivated(key : string, currentMode : ModeName) : boolean { - return (key === 'esc' || key === 'ctrl+['); + if (key === 'esc' || key === 'ctrl+[') { + vscode.commands.executeCommand("cursorLeft"); + return true; + } } HandleActivation(key : string) : void {