From be66556faf84003c9cd190fe370231ac1bc7beeb Mon Sep 17 00:00:00 2001 From: justbur Date: Wed, 15 Jul 2015 09:59:24 -0400 Subject: [PATCH] Remove useless when --- which-key.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/which-key.el b/which-key.el index a72187b3961..bfc0ff5e5d2 100644 --- a/which-key.el +++ b/which-key.el @@ -851,9 +851,9 @@ value of `which-key-show-prefix'. SEL-WIN-WIDTH is passed to (concat prefix-w-face " ") (concat prefix-w-face "-\n")))) (max-dims (which-key--popup-max-dimensions sel-win-width)) - (max-lines (when (car max-dims) (car max-dims))) + (max-lines (car max-dims)) + (avl-width (cdr max-dims)) (prefix-width (if (eq which-key-show-prefix 'left) prefix-len 0)) - (avl-width (when (cdr max-dims) (cdr max-dims))) (keys-rem formatted-keys) (max-pages (+ 1 (length formatted-keys))) (page-n 0)