branch: master
commit 299bc13b1e949c8b89aa97b229a642a878f3e690
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Fix initial-input not set to nil for 'read-file-name-internal
ivy.el (ivy--reset-state): This change is due to (ivy-set-actions t ...)
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 994d192..042dc4a 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1337,7 +1337,8 @@ This is useful for recursive `ivy-read'."
(equal initial-input default-directory)
(equal initial-input ""))
(setq coll (cons initial-input coll)))
- (unless (ivy-state-action ivy-last)
+ (unless (and (ivy-state-action ivy-last)
+ (not (equal (ivy--get-action ivy-last) 'identity)))
(setq initial-input nil))))
((eq collection 'internal-complete-buffer)
(setq coll (ivy--buffer-list "" ivy-use-virtual-buffers)))