diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2025-12-14 19:38:59 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2025-12-14 19:39:32 +0100 |
| commit | 09adbffdfadc8cae868da952fe7acc2ca26edbd5 (patch) | |
| tree | 1e7ebaf7521ab72ea86b89a6de2826ab71e1b115 | |
| parent | 41bad735bc06491cb01546387dc4e45d36ee6a12 (diff) | |
Fix frame position computation at the right edge
| -rw-r--r-- | corfu.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |
