branch: master
commit 9c8f4a40d97ebc336af2f497ef8734cbfa6ce940
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Revert "ivy.el (ivy--exhibit): Update prompt even if there are no 
candidates"
    
    This reverts commit 55d1898d53a7daf91b42acc7182c93550456aa27.
    
    Re #1183
---
 ivy.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 5e3e776..5e147d9 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2595,8 +2595,9 @@ Should be run via minibuffer `post-command-hook'."
                     (ivy--sort-maybe
                      (funcall (ivy-state-collection ivy-last) ivy-text)))
               (setq ivy--old-text ivy-text)))
-          (ivy--insert-minibuffer
-           (ivy--format ivy--all-candidates)))
+          (when ivy--all-candidates
+            (ivy--insert-minibuffer
+             (ivy--format ivy--all-candidates))))
       (cond (ivy--directory
              (cond ((or (string= "~/" ivy-text)
                         (and (string= "~" ivy-text)

Reply via email to