emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b5db0aa 397/399: ivy.el (ivy--insert-prompt): Adjust ivy-u


From: Oleh Krehel
Subject: [elpa] master b5db0aa 397/399: ivy.el (ivy--insert-prompt): Adjust ivy-use-selectable-prompt
Date: Sat, 20 Jul 2019 14:58:07 -0400 (EDT)

branch: master
commit b5db0aa7abc9b03cf00c38f39f002911bd4795fb
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]