branch: elpa/magit
commit b5066e5fa4000df474e5fb35b417b76d32e8131f
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-completing-read-multiple: Restore meaning of t as REQUIRE-MATCH
    
    As for `completing-read-multiple', if REQUIRE-MATCH is t, then all
    inputs must appear in the collection, but it is again possible to
    select nothing.
    
    Forge's uses of this function need this behavior.  In [1: 4e2dd7ba6f]
    I should only have added the new `any' value, instead of also changing
    the meaning of t.
    
    Closes magit/forge#814.
    
    1: 2025-08-16 4e2dd7ba6f54b2251a702b4c0416467d7315407a
       magit-completing-read-multiple: Support requiring non-empty input
---
 lisp/magit-base.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/magit-base.el b/lisp/magit-base.el
index 77e818a4b6d..99566a83044 100644
--- a/lisp/magit-base.el
+++ b/lisp/magit-base.el
@@ -715,7 +715,8 @@ third-party completion frameworks."
                 table predicate
                 (if (eq require-match 'any) nil require-match)
                 initial-input hist def inherit-input-method)))
-    (when (and require-match (not values))
+    (when (and (eq require-match 'any)
+               (not values))
       (user-error "Nothing selected"))
     (if no-split input values)))
 

Reply via email to