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

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

[elpa] master 5fef653 08/54: ivy.el (ivy-completing-read): Fix up last c


From: Oleh Krehel
Subject: [elpa] master 5fef653 08/54: ivy.el (ivy-completing-read): Fix up last commit
Date: Tue, 29 Sep 2015 14:09:49 +0000

branch: master
commit 5fef6532add66bfec051c1c47d2474dfa6a873db
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-completing-read): Fix up last commit
    
    Check if string before using `string-match'.
---
 ivy.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 1eb6b7d..36b75c0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1039,7 +1039,8 @@ The history, defaults and input-method arguments are 
ignored for now."
             :require-match require-match
             :initial-input (if (consp initial-input)
                                (car initial-input)
-                             (if (string-match "\\+" initial-input)
+                             (if (and (stringp initial-input)
+                                      (string-match "\\+" initial-input))
                                  (replace-regexp-in-string
                                   "\\+" "\\\\+" initial-input)
                                initial-input))



reply via email to

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