branch: externals/consult
commit 27c6a235515e0308f1e4cb133bbecd1f21154de3
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Fix consult--command-split
---
consult.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consult.el b/consult.el
index 345a3853fa..8028262393 100644
--- a/consult.el
+++ b/consult.el
@@ -678,7 +678,7 @@ Turn ARG into a list, and for each element either:
;; Use `split-string-shell-command' here instead of
;; `split-string-and-unquote' since it handles more flexible input -
;; double quoted strings, single quoted strings and escaped spaces.
- (cons str (and opts (split-string-shell-command opts))))))
+ (cons str (and opts (split-string-shell-command (string-trim opts)))))))
(defmacro consult--keep! (list form)
"Evaluate FORM for every element of LIST and keep the non-nil results."