Skip to content

Commit

Permalink
Merge pull request #50 from kimitake/fix-cursor-pos-in-normal-mode
Browse files Browse the repository at this point in the history
move cursor position after getting normal mode
  • Loading branch information
jpoon committed Nov 29, 2015
2 parents b28df21 + a8a277f commit 4fa94e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mode/modeNormal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4fa94e1

Please sign in to comment.