branch: master
commit bda5146b9c1badea1bf792b1a3ae5cd2a65519db
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el: Fix minibuffer-prompt face with ivy-use-selectable-prompt
Fixes #1090
---
ivy.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ivy.el b/ivy.el
index 73f7967..841630d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2337,9 +2337,10 @@ STD-PROPS is a property list containing the default text
properties."
(when (ivy--prompt-selectable-p)
(if (or (= ivy--index -1)
(= ivy--length 0))
- (add-face-text-property (point-min) (line-end-position)
- 'ivy-prompt-match)
- (remove-text-properties (point-min) (line-end-position) '(face))))
+ (add-face-text-property
+ (minibuffer-prompt-end) (line-end-position) 'ivy-prompt-match)
+ (remove-text-properties
+ (minibuffer-prompt-end) (line-end-position) '(face))))
;; get out of the prompt area
(constrain-to-field nil (point-max))))))