emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu fbcd636: Fix popup position if line is wrapped wi


From: ELPA Syncer
Subject: [elpa] externals/corfu fbcd636: Fix popup position if line is wrapped with truncate-lines=nil
Date: Fri, 30 Jul 2021 05:57:09 -0400 (EDT)

branch: externals/corfu
commit fbcd636f76de102068865e303e8c795d218af3a5
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Fix popup position if line is wrapped with truncate-lines=nil
---
 corfu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index 7d350a4..3529608 100644
--- a/corfu.el
+++ b/corfu.el
@@ -381,7 +381,7 @@ completion began less than that number of seconds ago."
          (x (or (car (posn-x-y (posn-at-point pos))) 0))
          (y (save-excursion
               (goto-char pos)
-              (beginning-of-line)
+              (beginning-of-visual-line)
               (or (cdr (posn-x-y (posn-at-point))) 0))))
     (corfu--make-frame
      (- x mw) y



reply via email to

[Prev in Thread] Current Thread [Next in Thread]