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

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

[elpa] externals/which-key 8d934c571f: Don't allow transient maps when p


From: ELPA Syncer
Subject: [elpa] externals/which-key 8d934c571f: Don't allow transient maps when prefix length is zero.
Date: Sun, 13 Feb 2022 22:57:54 -0500 (EST)

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

    Don't allow transient maps when prefix length is zero.
    
    Fixes #335
---
 which-key.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/which-key.el b/which-key.el
index c13f4af25a..d2743198fa 100644
--- a/which-key.el
+++ b/which-key.el
@@ -2655,6 +2655,9 @@ Finally, show the buffer."
                         (not which-key--secondary-timer-active))
                (which-key--start-timer which-key-idle-secondary-delay t))))
           ((and which-key-show-transient-maps
+                ;; Assuming that if this is not true we're in
+                ;; `which-key-show-top-level', which would then be overwritten.
+                (> (length prefix-keys) 0)
                 (keymapp overriding-terminal-local-map)
                 ;; basic test for it being a hydra
                 (not (eq (lookup-key overriding-terminal-local-map "\C-u")



reply via email to

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