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

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

[elpa] master 4b505da 2/8: ivy.el (ivy-completing-read): Check for a con


From: Oleh Krehel
Subject: [elpa] master 4b505da 2/8: ivy.el (ivy-completing-read): Check for a cons initial-input
Date: Sat, 23 May 2015 11:31:01 +0000

branch: master
commit 4b505da4536fa4047d3987cba4ecd22b91336c69
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-completing-read): Check for a cons initial-input
---
 ivy.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 8f882b3..f7e10e6 100644
--- a/ivy.el
+++ b/ivy.el
@@ -773,7 +773,9 @@ The history, defaults and input-method arguments are 
ignored for now."
   (ivy-read prompt collection
             :predicate predicate
             :require-match require-match
-            :initial-input initial-input
+            :initial-input (if (consp initial-input)
+                               (car initial-input)
+                             initial-input)
             :preselect (if (listp def) (car def) def)
             :history history
             :keymap nil



reply via email to

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