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

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

[elpa] externals/corfu a2ddf92 2/2: Minor cleanup


From: ELPA Syncer
Subject: [elpa] externals/corfu a2ddf92 2/2: Minor cleanup
Date: Thu, 15 Jul 2021 06:57:09 -0400 (EDT)

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

    Minor cleanup
---
 corfu.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/corfu.el b/corfu.el
index afeaab7..0bbb7fb 100644
--- a/corfu.el
+++ b/corfu.el
@@ -352,10 +352,10 @@ filter string with spaces is allowed."
          ;;; XXX HACK y-coordinate position computation is wrong
          ;;; if there exists a flymake underline overlay at that point.
          ;;; Take the y coordinate from the current point.
-         (x (car (posn-x-y (posn-at-point pos))))
-         (y (cdr (posn-x-y (posn-at-point (point))))))
+         (x (or (car (posn-x-y (posn-at-point pos))) 0))
+         (y (or (cdr (posn-x-y (posn-at-point (point)))) 0)))
     (corfu--make-frame
-     (- (or x 0) mw) (or y 0)
+     (- x mw) y
      (+ (* width cw) mw mw) (* (length lines) ch)
      (mapconcat (lambda (line)
                   (let ((str (concat



reply via email to

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