Skip to content

Commit 27c9dce

Browse files
committed
Add keyboard escape quit to commands which exit visual state
Fixes #1886
1 parent 0d40434 commit 27c9dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evil-states.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ otherwise exit Visual state."
345345
(when (evil-visual-state-p)
346346
(setq command (or command this-command))
347347
(if (or quit-flag
348-
(eq command #'keyboard-quit)
348+
(memq command '(keyboard-quit keyboard-escape-quit))
349349
;; Is `mark-active' nil for an unexpanded region?
350350
deactivate-mark
351351
(and (not evil-visual-region-expanded)

0 commit comments

Comments
 (0)