diff --git a/which-key.el b/which-key.el index 92d82f044d0..3ef4615dc19 100644 --- a/which-key.el +++ b/which-key.el @@ -818,7 +818,7 @@ value of `which-key-show-prefix'. SEL-WIN-WIDTH is passed to pages (reverse pages) first-page (car pages) first-page-str (concat prefix-string (car first-page))) - (cond (no-room + (cond ((<= (car keys-per-page) 0) ; check first page (message "%s- which-key can't show keys: Settings and/or frame size are too restrictive." prefix-keys) (cons 0 0)) (max-pages-reached