branch: master
commit b844b696052aa516e4b2000bd2bdb831dc2bf9ec
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy--format-minibuffer-line): Use add-face-text-property
---
 ivy.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 5b9239a..cba70b0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1524,10 +1524,11 @@ This string will be inserted into the minibuffer.")
                          (t
                           (nth (1+ (mod (+ i 2) (1- (length 
swiper-minibuffer-faces))))
                                swiper-minibuffer-faces)))))
-              (set-text-properties
+              (add-face-text-property
                (match-beginning i)
                (match-end i)
-               `(face ,face)
+               face
+               nil
                str))
             (cl-incf i)))))
     (when (fboundp 'add-face-text-property)

Reply via email to