branch: elpa/cider
commit 50020cb2e47f21c58d776c8f9fd4844b3d47eafc
Author: yuhan0 <qyth...@gmail.com>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Force default face on eval result overlays
---
 cider-overlays.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cider-overlays.el b/cider-overlays.el
index adb0463080..84954e3f0e 100644
--- a/cider-overlays.el
+++ b/cider-overlays.el
@@ -210,7 +210,9 @@ overlay."
                       (pcase cider-result-overlay-position
                         ('at-eol (line-end-position))
                         ('at-point (point)))))
-               (display-string (format format value))
+               ;; Specify `default' face, otherwise unformatted text will
+               ;; inherit the face of the following text.
+               (display-string (format (propertize format 'face 'default) 
value))
                (o nil))
           (remove-overlays beg end 'category type)
           (funcall (if cider-overlays-use-font-lock

Reply via email to