Skip to content

Commit

Permalink
Return to normal mode after hitting <BS> on empty command line (VSCod…
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Fields authored and jpoon committed May 6, 2019
1 parent 2ddca28 commit 0f27b42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ class CommandInsertInCommandline extends BaseCommand {
// handle special keys first
if (key === '<BS>' || key === '<shift+BS>' || key === '<C-h>') {
if (vimState.statusBarCursorCharacterPos === 0) {
await vimState.setCurrentMode(ModeName.Normal);
return vimState;
}

Expand Down

0 comments on commit 0f27b42

Please sign in to comment.