branch: master
commit 4b505da4536fa4047d3987cba4ecd22b91336c69
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    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