branch: master
commit b5db0aa7abc9b03cf00c38f39f002911bd4795fb
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--insert-prompt): Adjust ivy-use-selectable-prompt
When there are no matches, there's no need to highlight the prompt.
This results in less visual distraction, and is consistent with the
behavior of having `ivy-use-selectable-prompt' off.
---
ivy.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index d224484..89db91d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2865,8 +2865,7 @@ parts beyond their respective faces `ivy-confirm-face' and
;; option left. Since the user input stays put, we have to manually
;; remove the face as well.
(when ivy--use-selectable-prompt
- (if (or (= ivy--index -1)
- (= ivy--length 0))
+ (if (= ivy--index -1)
(ivy-add-face-text-property
(minibuffer-prompt-end) (line-end-position) 'ivy-prompt-match)
(remove-list-of-text-properties