summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
Diffstat (limited to 'corfu.el')
-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))