summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-11-18 20:30:18 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-11-18 20:30:18 +0100
commite58a70d7d4e756d4418355dc7004103677746689 (patch)
treee68ecfc46583806f76db4270807a99383198d0ce
parentbb4b0b0854a2566e6e7ef4c65c7f35a3c74ce079 (diff)
corfu-popupinfo: Fix popup placement (Fix #251)
-rw-r--r--extensions/corfu-popupinfo.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/corfu-popupinfo.el b/extensions/corfu-popupinfo.el
index 7a0e7c4..74b79a0 100644
--- a/extensions/corfu-popupinfo.el
+++ b/extensions/corfu-popupinfo.el
@@ -267,7 +267,7 @@ relative to the candidate popup, its value can be 'bottom or 'top."
a-direction 'top))
(setq a-height (min a-height (* (floor (/ a-height lh)) lh)))
(unless cf-on-cursor-bottom-p
- (setq a-y (max 0 (- cfy space border height border))))
+ (setq a-y (max 0 (- cfy space border a-height border))))
(list cfx a-y a-width a-height a-direction)))
(defun corfu-popupinfo--display-area (direction width height)