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

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

[elpa] externals/which-key a70fc16 1/9: Hide paging hint when prefix is


From: Stefan Monnier
Subject: [elpa] externals/which-key a70fc16 1/9: Hide paging hint when prefix is help-char
Date: Mon, 15 Mar 2021 22:29:19 -0400 (EDT)

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

    Hide paging hint when prefix is help-char
    
    We can't do paging in this case.
---
 which-key.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/which-key.el b/which-key.el
index c08cfd8..a25337f 100644
--- a/which-key.el
+++ b/which-key.el
@@ -2125,7 +2125,9 @@ max-lines max-width avl-lines avl-width 
(which-key--pages-height result))
          (key (if paging-key-bound
                   (concat key " or " which-key-paging-key)
                 key)))
-    (when which-key-use-C-h-commands
+    (when (and which-key-use-C-h-commands
+               (not (string-equal (char-to-string help-char)
+                                  (kbd prefix-keys))))
       (which-key--propertize (format "[%s paging/help]" key)
                              'face 'which-key-note-face))))
 



reply via email to

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