From 76a0199eb36bb46c08bc40e57cf324393bbb499b Mon Sep 17 00:00:00 2001 From: justbur Date: Fri, 10 Jul 2015 22:00:14 -0400 Subject: [PATCH] Start to fix lock up on small vertical window --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index d0703b6a975..35143d567ff 100644 --- a/which-key.el +++ b/which-key.el @@ -674,7 +674,7 @@ the maximum number of lines availabel in the target buffer." 'face 'font-lock-comment-face))) (which-key/create-page-vertical (-insert-at status-key-i status-key keys) max-lines max-width prefix-width)) - ((or (> n-rem-keys 0) (= 1 max-lines)) first-try) + ((or vertical (> n-rem-keys 0) (= 1 max-lines)) first-try) ;; do a simple search for now (TODO: Implement binary search) (t (while (not found) (setq prev-try next-try