From 50a3fbf1d4e6a39c618a86d931bee9584306a8dd Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sat, 19 Apr 2025 07:30:10 +0200 Subject: Avoid popup jumping at the end of line (See #570) --- corfu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corfu.el b/corfu.el index a53bad9..c280bf0 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 (cdr (posn-object-width-height pos)))) + (let ((lh (max (default-line-height) (cdr (posn-object-width-height pos))))) (with-current-buffer (corfu--make-buffer " *corfu*") (let* ((ch (default-line-height)) (cw (default-font-width)) -- cgit v1.0