branch: externals/corfu
commit 50a3fbf1d4e6a39c618a86d931bee9584306a8dd
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    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 a53bad994b..c280bf0e6f 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))

Reply via email to