emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/which-key 428aedf 8/9: Further simplify which-key--pseu


From: Stefan Monnier
Subject: [elpa] externals/which-key 428aedf 8/9: Further simplify which-key--pseudo-key
Date: Mon, 15 Mar 2021 22:29:20 -0400 (EDT)

branch: externals/which-key
commit 428aedfce0157920814fbb2ae5d00b4aea89df88
Author: Justin Burkett <justin@burkett.cc>
Commit: Justin Burkett <justin@burkett.cc>

    Further simplify which-key--pseudo-key
---
 which-key.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index b2635ea..ba3efe3 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1596,7 +1596,7 @@ which are strings. KEY is of the form produced by 
`key-binding'."
   "Replace the last key in the sequence KEY by a special symbol
 in order for which-key to allow looking up a description for the key."
   (let ((seq (listify-key-sequence key)))
-    (vconcat (or prefix (butlast seq)) (vector 'which-key (last seq)))))
+    (vconcat (or prefix (butlast seq)) [which-key] (last seq))))
 
 (defun which-key--maybe-get-prefix-title (keys)
   "KEYS is a string produced by `key-description'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]