branch: externals/corfu commit a2ddf927496d8a81fb4ab14f1cd8210fad5531a9 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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