Skip to content

Commit 4fa94e1

Browse files
committed
Merge pull request #50 from kimitake/fix-cursor-pos-in-normal-mode
move cursor position after getting normal mode
2 parents b28df21 + a8a277f commit 4fa94e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mode/modeNormal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export default class CommandMode extends Mode {
2626
}
2727

2828
ShouldBeActivated(key : string, currentMode : ModeName) : boolean {
29-
return (key === 'esc' || key === 'ctrl+[');
29+
if (key === 'esc' || key === 'ctrl+[') {
30+
vscode.commands.executeCommand("cursorLeft");
31+
return true;
32+
}
3033
}
3134

3235
HandleActivation(key : string) : void {

0 commit comments

Comments
 (0)