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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user