branch: externals/consult
commit deec61927ca36fb5a1dc2fe3c3e8c5750724dc4f
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
consult-completing-read-multiple: Split returned candidates by crm-separator
This allows Embark injection of multiple candidates (cc @bdarcus).
---
consult.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consult.el b/consult.el
index 78f3c60..c476a10 100644
--- a/consult.el
+++ b/consult.el
@@ -2273,7 +2273,7 @@ See `completing-read-multiple' for the documentation of
the arguments."
"" ;; default
inherit-input-method)))
(unless (or (equal result "") selected)
- (setq selected (list result)
+ (setq selected (split-string result separator 'omit-nulls)
consult--crm-history (cons result hist-val)))))
(remove-hook 'pre-command-hook hook)))
(set hist-sym consult--crm-history)