branch: externals/corfu commit 3cfb6f4fe462892621ae2f7187bb37f1e306f99d Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Pixel-perfect positioning --- corfu.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corfu.el b/corfu.el index e90b247..1cbc51f 100644 --- a/corfu.el +++ b/corfu.el @@ -175,10 +175,10 @@ Set to nil in order to disable confirmation." (after-make-frame-functions) (edge (window-inside-pixel-edges)) (lh (line-pixel-height)) - (x (max 0 (min (+ (car edge) x) (- (frame-pixel-width) width)))) + (x (max 0 (min (+ (car edge) x -1) (- (frame-pixel-width) width)))) (y (+ (cadr edge) y)) (y (if (> (+ y height (* 3 lh)) (frame-pixel-height)) - (- y height) + (- y height 1) (+ y lh))) (buffer (get-buffer-create " *corfu*"))) (with-current-buffer buffer