branch: master
commit 55d1898d53a7daf91b42acc7182c93550456aa27
Author: fabacino <[email protected]>
Commit: fabacino <[email protected]>
ivy.el (ivy--exhibit): Update prompt even if there are no candidates
Previously, the minibuffer prompt was not refreshed in case a dynamic
collection returned no candidates. This triggered the following
problems:
- Candidates were displayed even though they did not match the filter.
- The prompt was not selectable.
Fixes #1183
---
ivy.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/ivy.el b/ivy.el
index 5e147d9..5e3e776 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2595,9 +2595,8 @@ 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)))
- (when ivy--all-candidates
- (ivy--insert-minibuffer
- (ivy--format ivy--all-candidates))))
+ (ivy--insert-minibuffer
+ (ivy--format ivy--all-candidates)))
(cond (ivy--directory
(cond ((or (string= "~/" ivy-text)
(and (string= "~" ivy-text)