From ea115fc5dd84d1b28351661ad9b31bbc852bb662 Mon Sep 17 00:00:00 2001 From: justbur Date: Fri, 10 Jul 2015 11:56:15 -0400 Subject: [PATCH] Fix bug (layout wasn't going to 1 line) --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index f15bcc18fe3..088f55436bd 100644 --- a/which-key.el +++ b/which-key.el @@ -611,7 +611,7 @@ the maximum number of lines availabel in the target buffer." next-try-lines (- next-try-lines 1) next-try (which-key/create-page-vertical next-try-lines max-width key-cns) n-rem-keys (length (nth 3 next-try)) - found (or (= next-try-lines 1) (> n-rem-keys 0)))) + found (or (= next-try-lines 0) (> n-rem-keys 0)))) prev-try))) ;; start on binary search (not correct yet)