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

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

[elpa] externals/ivy-hydra a2a3263 014/395: ivy.el (ivy-initial-inputs-a


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra a2a3263 014/395: ivy.el (ivy-initial-inputs-alist): Add default behavior
Date: Thu, 25 Feb 2021 08:31:21 -0500 (EST)

branch: externals/ivy-hydra
commit a2a3263e3df9a2c3e24de442f9bf108d023e0978
Author: honmaple <xiyang0807@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy-initial-inputs-alist): Add default behavior
    
    Fixes #2286
---
 ivy.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/ivy.el b/ivy.el
index 3bed34f..466b3f6 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2187,11 +2187,8 @@ This is useful for recursive `ivy-read'."
          (sort (or (ivy-state-sort state) (assoc caller 
ivy-sort-functions-alist)))
          (initial-input
           (or (ivy-state-initial-input state)
-              (let ((init (cdr (assq caller ivy-initial-inputs-alist))))
-                (cond ((functionp init)
-                       (funcall init))
-                      (t
-                       init)))))
+              (let ((init (ivy-alist-setting ivy-initial-inputs-alist caller)))
+                (if (functionp init) (funcall init) init))))
          (def (ivy-state-def state)))
     (setq ivy--extra-candidates (ivy--compute-extra-candidates caller))
     (setq ivy--directory nil)



reply via email to

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