branch: externals/which-key
commit bfab035d1b9552c2239203644cb4535c5ef4b45b
Author: Jeremy Bryant <[email protected]>
Commit: Justin Burkett <[email protected]>
Simplify code to use null
* which-key.el (which-key--create-buffer-and-show):
Use null.
---
which-key.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/which-key.el b/which-key.el
index 2f2c2804f5..f2f86269fc 100644
--- a/which-key.el
+++ b/which-key.el
@@ -2692,7 +2692,7 @@ Finally, show the buffer."
(formatted-keys (which-key--get-bindings
prefix-keys from-keymap filter))
(prefix-desc (key-description prefix-keys)))
- (cond ((= (length formatted-keys) 0)
+ (cond ((null formatted-keys)
(message "%s- which-key: There are no keys to show" prefix-desc))
((listp which-key-side-window-location)
(setq which-key--last-try-2-loc