branch: master
commit 77997ea9ebd9b6ff2a65290e2731015ab4bbf268
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    counsel.el (counsel-M-x-transformer): Handle read-only strings
    
    Re #2258
    Fixes #2262
---
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index d84c6e2..206b01a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -819,7 +819,7 @@ With prefix arg MODE a query for the symbol help mode is 
offered."
                (memq sym minor-mode-list)
                (boundp sym)
                (buffer-local-value sym (ivy-state-buffer ivy-last))))
-      (put-text-property 0 (length cmd) 'face 'counsel-active-mode cmd))
+      (setq cmd (propertize cmd 'face 'counsel-active-mode)))
     (concat cmd
             (when (and (symbolp alias) counsel-alias-expand)
               (format " (%s)" alias))

Reply via email to