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

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

[elpa] master 520fd83 360/399: ivy.el (ivy-read): Simplify


From: Oleh Krehel
Subject: [elpa] master 520fd83 360/399: ivy.el (ivy-read): Simplify
Date: Sat, 20 Jul 2019 14:57:59 -0400 (EDT)

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

    ivy.el (ivy-read): Simplify
---
 ivy.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 515c0cd..59da864 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1969,8 +1969,6 @@ CALLER is a symbol to uniquely identify the caller to 
`ivy-read'.
 It is used, along with COLLECTION, to determine which
 customizations apply to the current completion session."
   (setq caller (or caller this-command))
-  (setq ivy--extra-candidates (ivy--compute-extra-candidates caller))
-  (setq ivy-marked-candidates nil)
   (setq ivy-last
         (make-ivy-state
          :prompt prompt
@@ -2065,6 +2063,7 @@ customizations apply to the current completion session."
 (defun ivy--reset-state (state)
   "Reset the ivy to STATE.
 This is useful for recursive `ivy-read'."
+  (setq ivy-marked-candidates nil)
   (unless (equal (selected-frame) (ivy-state-frame state))
     (select-window (active-minibuffer-window)))
   (let* ((prompt (or (ivy-state-prompt state) ""))
@@ -2085,6 +2084,7 @@ This is useful for recursive `ivy-read'."
                       (t
                        init)))))
          (def (ivy-state-def state)))
+    (setq ivy--extra-candidates (ivy--compute-extra-candidates caller))
     (setq ivy--directory nil)
     (setq ivy-case-fold-search ivy-case-fold-search-default)
     (setq ivy--regex-function



reply via email to

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