branch: master
commit 299b851615120f6c910d6bad54a42b514971e242
Author: fabacino <[email protected]>
Commit: fabacino <[email protected]>

    counsel.el (counsel-org-goto--add-face): Keep text properties
    
    If counsel-org-goto-face-style was set to nil, the headlines were
    stripped of all their text properties. This caused text to appear
    which was intentionally hidden by org-mode e.g. the uri of a link.
    
    The fixed function now just applies the default minibuffer face on top
    of the existing properties, which looks like the entries have not been
    styled at all but preserves the other properties.
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 4eca148..abc035c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2408,7 +2408,7 @@ The face can be customized through 
`counsel-org-goto-face-style'."
             name
             'face
             (nth (1- level) counsel-org-goto-custom-faces)))
-      (substring-no-properties name)))
+      (propertize name 'face 'minibuffer-prompt)))
 
 ;;** `counsel-mark-ring'
 (defun counsel--pad (string length)

Reply via email to