Skip to content

Commit

Permalink
Escape key in normal mode does nothing. Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Apr 16, 2017
1 parent ac91595 commit 9989747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions XSVim/XSVim.fs
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ module Vim =
let action =
match state.mode, keyList with
| VisualBlockMode, [ Escape ] -> [ run Move SelectionStart; switchMode NormalMode ]
| NormalMode, [ Escape ] -> [ run ResetKeys Nothing ]
| _, [ Escape ] -> [ run (SwitchMode NormalMode) Nothing; run Move Left ]
| NotInsertMode, [ Movement m ] -> [ run Move m ]
| NotInsertMode, [ FindChar m; c ] -> [ run Move (m c) ]
Expand Down

0 comments on commit 9989747

Please sign in to comment.