From 8ba3bf1449ea06cf0e447733c2e7bfcd9717d2cc Mon Sep 17 00:00:00 2001 From: Cao ZhenXiang Date: Sun, 25 Jul 2021 00:48:16 +0800 Subject: [PATCH] Allow overriding/intercepting multiple states --- evil-core.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evil-core.el b/evil-core.el index 06001047..d0e1084b 100644 --- a/evil-core.el +++ b/evil-core.el @@ -928,6 +928,8 @@ If STATE is nil, it means any state." map) ((eq entry state) map) + ((and (listp entry) (member state entry)) + map) ((eq entry 'all) map)))) @@ -945,6 +947,8 @@ If STATE is nil, it means any state." map) ((eq entry state) map) + ((and (listp entry) (member state entry)) + map) ((eq entry 'all) map))))