[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu 0afd1f7266 6/8: Force fringe update
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu 0afd1f7266 6/8: Force fringe update |
Date: |
Fri, 1 Nov 2024 12:58:25 -0400 (EDT) |
branch: externals/corfu
commit 0afd1f72667653581313f98f7939dd3d9b569ecd
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Force fringe update
---
corfu.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/corfu.el b/corfu.el
index 35a0c38d0d..295e3045af 100644
--- a/corfu.el
+++ b/corfu.el
@@ -479,7 +479,8 @@ FRAME is the existing frame."
;; overrides the parameter `tool-bar-lines' for every frame, including
child
;; frames. The child frame API is a pleasure to work with. It is full of
;; lovely surprises.
- (let* ((is (frame-parameters frame))
+ (let* ((win (frame-root-window frame))
+ (is (frame-parameters frame))
(should `((background-color
. ,(face-attribute 'corfu-default :background nil
'default))
(font . ,(frame-parameter parent 'font))
@@ -488,9 +489,9 @@ FRAME is the existing frame."
,@corfu--frame-parameters))
(diff (cl-loop for p in should for (k . v) = p
unless (equal (alist-get k is) v) collect p)))
- (when diff (modify-frame-parameters frame diff)))
- (let ((win (frame-root-window frame)))
- (unless (eq (window-buffer win) (current-buffer))
+ (when diff (modify-frame-parameters frame diff))
+ ;; XXX HACK: `set-window-buffer' must be called to force fringe update.
+ (when (or diff (eq (window-buffer win) (current-buffer)))
(set-window-buffer win (current-buffer)))
;; Disallow selection of root window (gh:minad/corfu#63)
(set-window-parameter win 'no-delete-other-windows t)
- [elpa] externals/corfu updated (16d5aef839 -> 2b81c26dd7), ELPA Syncer, 2024/11/01
- [elpa] externals/corfu 0afd1f7266 6/8: Force fringe update,
ELPA Syncer <=
- [elpa] externals/corfu e7a22ac6d6 4/8: Use fringe for the scroll bar, ELPA Syncer, 2024/11/01
- [elpa] externals/corfu a0ac2861e9 3/8: Suffixes are always prefixed with space, ELPA Syncer, 2024/11/01
- [elpa] externals/corfu 38acda3546 5/8: Ensure right-margin-width >= bar-width, ELPA Syncer, 2024/11/01
- [elpa] externals/corfu d20892abbc 2/8: format-candidates: ensure suffix is right-aligned when possible, ELPA Syncer, 2024/11/01
- [elpa] externals/corfu 090299074e 1/8: Use :extend=t for corfu-current, Simplify, ELPA Syncer, 2024/11/01
- [elpa] externals/corfu 2b81c26dd7 8/8: Fix corfu--popup-show: curr can be nil, ELPA Syncer, 2024/11/01
- [elpa] externals/corfu 1ad0336693 7/8: Update changelog, ELPA Syncer, 2024/11/01