branch: externals/modus-themes
commit 2602e2c0dbb39ab7cc3181ab2beafdfe98b1bc3c
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Use more appropriate style for completion-preview-exact and add note about 
it
---
 modus-themes.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modus-themes.el b/modus-themes.el
index d5169eb2e1..d3734d428a 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -4862,7 +4862,12 @@ FG and BG are the main colors."
 ;;;;; completion-preview
     `(completion-preview ((,c :foreground ,fg-dim)))
     `(completion-preview-common ((,c :inherit completion-preview :underline 
t)))
-    `(completion-preview-exact ((,c :inherit completion-preview :foreground 
,accent-0 :underline ,accent-0)))
+    ;; NOTE 2025-11-18: We have to inherit `completion-preview'
+    ;; otherwise the `hl-line-mode' line loses its background where
+    ;; the `completion-preview-mode' overlay is.  This is not
+    ;; intuitive, given that we do not set a background for
+    ;; `completion-preview'.
+    `(completion-preview-exact ((,c :inherit (modus-themes-completion-match-0 
completion-preview))))
 ;;;;; completions
     `(completions-annotations ((,c :inherit modus-themes-slant :foreground 
,docstring)))
     `(completions-common-part ((,c :inherit modus-themes-completion-match-0)))

Reply via email to