Accept no bindings in evil-collection-define-key

They all might be filtered by the white and black lists.
This commit is contained in:
Justin Burkett 2018-06-13 15:07:32 -04:00 committed by James N
parent 1afea31ac6
commit 2659ae505c
1 changed files with 2 additions and 1 deletions

View File

@ -230,7 +230,8 @@ function adds the ability to filter keys on the basis of
(push def filtered-bindings))))
(puthash map-sym record evil-collection--bindings-record)
(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*
state (symbol-value map-sym) filtered-bindings))
((boundp map-sym)