branch: externals/which-key
commit 28f386cc4af8c0fe21269bb587a5bb229ba3834e
Author: Justin Burkett <jus...@burkett.cc>
Commit: Justin Burkett <jus...@burkett.cc>

    Fix key sort order functions
    
    We now always get the full key description (prefix + binding)
---
 which-key.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index 13c440d..2d81d2e 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1343,7 +1343,9 @@ width) in lines and characters respectively."
   "Sorting function used for `which-key-key-order' and
 `which-key-key-order-alpha'."
   (save-match-data
-    (let* ((rngrgxp "^\\([^ ]+\\) \\.\\. [^ ]+")
+    (let* ((a (which-key--extract-key a))
+           (b (which-key--extract-key b))
+           (rngrgxp "^\\([^ ]+\\) \\.\\. [^ ]+")
            (a (if (string-match rngrgxp a) (match-string 1 a) a))
            (b (if (string-match rngrgxp b) (match-string 1 b) b))
            (aem? (string-equal a ""))

Reply via email to