1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-08 07:12:15 -07:00

Fix text visibility issue with show-paren--show-context-in-overlay

* lisp/paren.el (show-paren--show-context-in-overlay): Fix issue where
the overlay's text was hardly visible in certain cases (bug#59527).
This commit is contained in:
Tassilo Horn 2026-04-01 06:28:51 +02:00
parent 1e807c5376
commit ded80d0d49

View file

@ -434,9 +434,10 @@ It is the default value of `show-paren-data-function'."
(overlay-put show-paren--context-overlay 'priority
show-paren-priority)
(overlay-put show-paren--context-overlay
'face `(:box
( :line-width (1 . -1)
:color ,(face-attribute 'shadow :foreground))))
'face `( :inherit default
:box
( :line-width (1 . -1)
:color ,(face-attribute 'shadow :foreground))))
(add-hook 'post-command-hook #'show-paren--delete-context-overlay
nil 'local))