summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-11-24 14:48:58 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-11-24 14:48:58 +0100
commit605e5bfc7960eaf6001d47192a1f7401effa463c (patch)
treed0f74eb4a9b70eb32426843b870570d125f78b36
parent4a6e5df2fb139d8402b4171b2f036b3a12372230 (diff)
Add comment
-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))))