From 8adbc25c390bb6c2b1359e17cca08fd90be6ba3e Mon Sep 17 00:00:00 2001 From: Jeremy Bryant Date: Thu, 4 Apr 2024 11:18:57 +0100 Subject: [PATCH] Use null for clarity * which-key.el (which-key--show-evil-operator-keymap): Use null for clarity of zero length. --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 8c6d423..0c38a1a 100644 --- a/which-key.el +++ b/which-key.el @@ -2659,7 +2659,7 @@ KEYMAP is selected interactively by mode in (let ((formatted-keys (which-key--get-bindings nil keymap #'which-key--evil-operator-filter))) - (cond ((= (length formatted-keys) 0) + (cond ((null formatted-keys) (message "which-key: Keymap empty")) ((listp which-key-side-window-location) (setq which-key--last-try-2-loc