summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-04-19 07:17:08 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2025-04-19 07:17:08 +0200
commit260f514a62dc5624cfa926f0e9f3ab53fffabd70 (patch)
tree8680d7d605e94cfc1d7b40a25266e7ef5db67bab
parent5834e3ed652068209a653ea067f91d3f537d0be5 (diff)
Improve vertical positioning (Fix #570)
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index b9b8b7d..a53bad9 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1034,7 +1034,7 @@ Auto completion is only performed if the tick did not change."
WIDTH is the width of the popup.
The current candidate CURR is highlighted.
A scroll bar is displayed from LO to LO+BAR."
- (let ((lh (default-line-height)))
+ (let ((lh (cdr (posn-object-width-height pos))))
(with-current-buffer (corfu--make-buffer " *corfu*")
(let* ((ch (default-line-height))
(cw (default-font-width))