Skip to content

Commit

Permalink
Add keyboard escape quit to commands which exit visual state
Browse files Browse the repository at this point in the history
Fixes #1886
  • Loading branch information
tomdl89 committed Apr 13, 2024
1 parent 0d40434 commit 27c9dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-states.el
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ otherwise exit Visual state."
(when (evil-visual-state-p)
(setq command (or command this-command))
(if (or quit-flag
(eq command #'keyboard-quit)
(memq command '(keyboard-quit keyboard-escape-quit))
;; Is `mark-active' nil for an unexpanded region?
deactivate-mark
(and (not evil-visual-region-expanded)
Expand Down

0 comments on commit 27c9dce

Please sign in to comment.