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

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

[elpa] externals/consult 5240034382 1/3: consult--read: Disallow null co


From: ELPA Syncer
Subject: [elpa] externals/consult 5240034382 1/3: consult--read: Disallow null completion only for require-match=t (Fix #932)
Date: Tue, 23 Jan 2024 03:57:46 -0500 (EST)

branch: externals/consult
commit 52400343828f96914c2f1169b6c9c6be2e6e0653
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    consult--read: Disallow null completion only for require-match=t (Fix #932)
---
 consult.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consult.el b/consult.el
index 7416d084db..4b077d0c9b 100644
--- a/consult.el
+++ b/consult.el
@@ -2597,7 +2597,7 @@ PREVIEW-KEY are the preview keys."
           ;; Repair the null completion semantics. `completing-read' may return
           ;; an empty string even if REQUIRE-MATCH is non-nil. One can always
           ;; opt-in to null completion by passing the empty string for DEFAULT.
-          (when (and require-match (not default) (equal selected ""))
+          (when (and (eq require-match t) (not default) (equal selected ""))
             (user-error "No selection"))
           selected)))))
 



reply via email to

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