We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2257a9d commit f345f7fCopy full SHA for f345f7f
1 file changed
ivy.el
@@ -3263,9 +3263,14 @@ parts beyond their respective faces `ivy-confirm-face' and
3263
(when ivy-add-newline-after-prompt
3264
(setq n-str (concat n-str "\n")))
3265
(setq n-str (ivy--break-lines n-str (window-width)))
3266
- (set-text-properties 0 (length n-str)
3267
- `(face minibuffer-prompt ,@std-props)
3268
- n-str)
+ (let ((old-props (when (fboundp 'object-intervals)
+ (object-intervals n-str))))
+ (set-text-properties 0 (length n-str)
3269
+ `(face minibuffer-prompt ,@std-props)
3270
+ n-str)
3271
+ (dolist (propdata old-props)
3272
+ (cl-destructuring-bind (beg end props) propdata
3273
+ (add-text-properties beg end props n-str))))
3274
(setq n-str (funcall ivy-set-prompt-text-properties-function
3275
n-str std-props))
3276
(insert n-str))
0 commit comments