branch: externals/ivy-hydra
commit 66a8b1be71875755a9f6a45ca53e5110ef13f27d
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy--reset-state): Bind ivy-recursive-restore to nil
For `xref-find-definitions', `all-completions' may call `ivy-read' in
turn.
Fixes #1953
---
ivy.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 425e60f..c5a9128 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2219,7 +2219,8 @@ This is useful for recursive `ivy-read'."
(setq ivy--highlight-function
(or (cdr (assq ivy--regex-function ivy-highlight-functions-alist))
#'ivy--highlight-default))
- (let (coll sort-fn)
+ (let ((ivy-recursive-restore nil)
+ coll sort-fn)
(cond ((eq collection #'Info-read-node-name-1)
(setq coll
(if (equal (bound-and-true-p Info-current-file) "dir")