Accept no bindings in evil-collection-define-key
They all might be filtered by the white and black lists.
This commit is contained in:
parent
1afea31ac6
commit
2659ae505c
|
@ -230,7 +230,8 @@ function adds the ability to filter keys on the basis of
|
||||||
(push def filtered-bindings))))
|
(push def filtered-bindings))))
|
||||||
(puthash map-sym record evil-collection--bindings-record)
|
(puthash map-sym record evil-collection--bindings-record)
|
||||||
(setq filtered-bindings (nreverse filtered-bindings))
|
(setq filtered-bindings (nreverse filtered-bindings))
|
||||||
(cond ((and (boundp map-sym) (keymapp (symbol-value map-sym)))
|
(cond ((null filtered-bindings))
|
||||||
|
((and (boundp map-sym) (keymapp (symbol-value map-sym)))
|
||||||
(apply #'evil-define-key*
|
(apply #'evil-define-key*
|
||||||
state (symbol-value map-sym) filtered-bindings))
|
state (symbol-value map-sym) filtered-bindings))
|
||||||
((boundp map-sym)
|
((boundp map-sym)
|
||||||
|
|
Loading…
Reference in New Issue