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

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

[elpa] externals/ivy-hydra 9e7f21a 078/395: ivy.el (ivy-completing-read)


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 9e7f21a 078/395: ivy.el (ivy-completing-read): Fix require-match arg being symbol
Date: Thu, 25 Feb 2021 08:31:35 -0500 (EST)

branch: externals/ivy-hydra
commit 9e7f21a7ae583adf8d81c405f08ca0bd13110a57
Author: Spenser Truex <web@spensertruex.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy-completing-read): Fix require-match arg being symbol
    
    Do not cast them into boolean T values, since they change behaviour.
    
    Fixes #2367
---
 ivy.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index ede57d3..5b5f165 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2413,7 +2413,7 @@ This interface conforms to `completing-read' and can be 
used for
 PROMPT is a string that normally ends in a colon and a space.
 COLLECTION is either a list of strings, an alist, an obarray, or a hash table.
 PREDICATE limits completion to a subset of COLLECTION.
-REQUIRE-MATCH is a boolean value.  See `completing-read'.
+REQUIRE-MATCH is a boolean value or a symbol.  See `completing-read'.
 INITIAL-INPUT is a string inserted into the minibuffer initially.
 HISTORY is a list of previously selected inputs.
 DEF is the default value.
@@ -2440,7 +2440,8 @@ INHERIT-INPUT-METHOD is currently ignored."
       (let ((str (ivy-read
                   prompt collection
                   :predicate predicate
-                  :require-match (and collection require-match)
+                  :require-match (when (and collection require-match)
+                                   require-match)
                   :initial-input (cond ((consp initial-input)
                                         (car initial-input))
                                        ((and (stringp initial-input)



reply via email to

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