branch: externals/which-key
commit 3f76f5178d28e3b45c236ca83c37613851598abd
Author: Justin Burkett <[email protected]>
Commit: Justin Burkett <[email protected]>
Fix which-key--group-p
length> is a new function maybe
---
which-key.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/which-key.el b/which-key.el
index 2c4004f..13c440d 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1406,8 +1406,7 @@ Uses `string-lessp' after applying lowercase."
(defsubst which-key--group-p (description)
(or (string-equal description "prefix")
- (and (length> description 6)
- (string-equal (substring description 0 6) "group:"))
+ (string-match-p "^group:" description)
(keymapp (intern description))))
(defun which-key-prefix-then-key-order (acons bcons)