1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-05 05:21:26 -08:00

Fix close timer randomly kicking in

when you take too long to decide
This commit is contained in:
justbur 2015-07-02 19:28:36 -04:00
parent b353cd2a35
commit 515ed1df96

View file

@ -130,6 +130,8 @@ Finally, show the buffer."
(let ((key (this-single-command-keys)))
(if (> (length key) 0)
(progn
(when which-key--close-timer (cancel-timer which-key--close-timer))
(which-key/hide-buffer)
(let ((buf (current-buffer))
(key-str-qt (regexp-quote (key-description key)))
(bottom-or-top (member which-key-buffer-position '(top bottom)))