* ivy.el (ivy--format-minibuffer-line): Use
`font-lock-append-text-property' instead of
`add-face-text-property'. It's not optimal, since the new face needs
to be put in front, but at least it doesn't error out.
(t
(nth (1+ (mod (+ i 2) (1- (length swiper-minibuffer-faces))))
swiper-minibuffer-faces)))))
- (add-face-text-property
- (match-beginning i)
- (match-end i)
- face
- nil
- str))
+ (if (fboundp 'add-face-text-property)
+ (add-face-text-property
+ (match-beginning i)
+ (match-end i)
+ face
+ nil
+ str)
+ (font-lock-append-text-property
+ (match-beginning i)
+ (match-end i)
+ 'face
+ face
+ str)))
(cl-incf i)))))
str))