From 515ed1df9607c6cbd653b9b97ee04a464db59251 Mon Sep 17 00:00:00 2001 From: justbur Date: Thu, 2 Jul 2015 19:28:36 -0400 Subject: [PATCH] Fix close timer randomly kicking in when you take too long to decide --- which-key.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/which-key.el b/which-key.el index d00f3c5421a..968bcbce252 100644 --- a/which-key.el +++ b/which-key.el @@ -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)))