summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-12-14 19:38:59 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-12-14 19:39:32 +0100
commit09adbffdfadc8cae868da952fe7acc2ca26edbd5 (patch)
tree1e7ebaf7521ab72ea86b89a6de2826ab71e1b115 /corfu.el
parent41bad735bc06491cb01546387dc4e45d36ee6a12 (diff)
Fix frame position computation at the right edge
Diffstat (limited to 'corfu.el')
-rw-r--r--corfu.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index db960c4..260c2d7 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1141,7 +1141,8 @@ A scroll bar is displayed from LO to LO+BAR."
(edge (window-inside-pixel-edges))
(border (if graphic corfu-border-width 0))
(x (max 0 (min (+ (car edge) (- (or (car pos) 0) ml (* cw off) border))
- (- (frame-pixel-width) width))))
+ (- (frame-pixel-width) width
+ (if graphic (+ ml mr (* 2 border)) 0)))))
(yb (+ (cadr edge) (or (cdr pos) 0) lh
(static-if (< emacs-major-version 31) (window-tab-line-height) 0)))
(y (if (> (+ yb (* corfu-count ch) lh lh) (frame-pixel-height))