diff options
| author | Tom Dalziel <tom_dl@hotmail.com> | 2024-04-13 23:29:25 +0200 |
|---|---|---|
| committer | Tom Dalziel <tom_dl@hotmail.com> | 2024-04-13 23:33:27 +0200 |
| commit | 27c9dce3cf49bb3714820d4485bdade8c70434e0 (patch) | |
| tree | 5943d02d4cb6acbdd7112fb65d8711948dc240cc | |
| parent | 0d4043408d9f623c07d99b481737a001e260fffc (diff) | |
Add keyboard escape quit to commands which exit visual state
Fixes #1886
| -rw-r--r-- | evil-states.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-states.el b/evil-states.el index c15b963..402ea85 100644 --- a/evil-states.el +++ b/evil-states.el @@ -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) |
