branch: elpa/gnosis
commit 73734ff96b5677e16877113a152ebf3c95ff355b
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>

    [fix] utils-highlight-words: Adjust for nil default-face.
    
    + Make no changes to str when default-face is nil, otherwise we brake
      org-mode highlighting.
---
 gnosis-utils.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnosis-utils.el b/gnosis-utils.el
index 9bf4b49f693..cde68de7db2 100644
--- a/gnosis-utils.el
+++ b/gnosis-utils.el
@@ -45,7 +45,7 @@ Replaces first occurence of word in STR with FACE.
 Optionally, use custom DEFAULT-FACE."
   (cl-assert (listp words) nil "Words to mark must be a list.")
   (with-temp-buffer
-    (insert (propertize str 'face default-face))
+    (insert (if default-face (propertize str 'face default-face) str))
     (goto-char (point-min))
     (dolist (answer words)
       (let ((answer-text (gnosis-utils-trim-quotes answer)))

Reply via email to