summaryrefslogtreecommitdiff
path: root/extensions/corfu-popupinfo.el
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/corfu-popupinfo.el')
-rw-r--r--extensions/corfu-popupinfo.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/corfu-popupinfo.el b/extensions/corfu-popupinfo.el
index 0eba027..bb1dd42 100644
--- a/extensions/corfu-popupinfo.el
+++ b/extensions/corfu-popupinfo.el
@@ -235,6 +235,8 @@ all values are in pixels relative to the origin. See
;; since lines will get wrapped.
(when (<= (car size) max-width)
(cons (+ margin (car size))
+ ;; Ensure that popup has at least a height of 1,
+ ;; which is the minimum frame height (#261).
(min (max (cdr size) lh) max-height))))))
(cons (+ margin max-width) max-height))))