diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-12-09 21:49:54 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-12-09 21:49:54 +0100 |
| commit | ced6aca1b9f4509c6c519df00b34be640f7dcbfd (patch) | |
| tree | a49469aced90a3c7b952710fbe6daa71014ee34a | |
| parent | 53721b949b1f66aa35e04e9996ecc18eaf118322 (diff) | |
Ensure that border is drawn when popup is displayed at x=0
| -rw-r--r-- | corfu.el | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -385,9 +385,9 @@ The completion backend can override this with (after-make-frame-functions) (edge (window-inside-pixel-edges)) (lh (default-line-height)) - (x (max 0 (min (+ (car edge) x - (- (alist-get 'child-frame-border-width corfu--frame-parameters))) - (- (frame-pixel-width) width)))) + (border (alist-get 'child-frame-border-width corfu--frame-parameters)) + (x (max border (min (+ (car edge) x (- border)) + (- (frame-pixel-width) width)))) (yb (+ (cadr edge) (window-tab-line-height) y lh)) (y (if (> (+ yb height lh lh) (frame-pixel-height)) (- yb height lh 1) @@ -401,8 +401,7 @@ The completion backend can override this with (minibuffer . ,(minibuffer-window (window-frame))) (line-spacing . ,line-spacing) ;; Set `internal-border-width' for Emacs 27 - (internal-border-width - . ,(alist-get 'child-frame-border-width corfu--frame-parameters)) + (internal-border-width . ,border) ,@corfu--frame-parameters)))) ;; XXX HACK Setting the same frame-parameter/face-background is not a nop (BUG!). ;; Check explicitly before applying the setting. |
