branch: elpa/helm commit f846ff91a461718fc9b1c240e1ded771ade42808 Merge: e8957d1b38 882cd964d0 Author: Thierry Volpiatto <thie...@posteo.net> Commit: GitHub <nore...@github.com>
Merge pull request #2589 from fedraco-gh/master Replace split-string with split-string-shell-command to prevent spaces inside quotes from being considered as separators --- helm-fd.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm-fd.el b/helm-fd.el index f7b6c2d1b2..f54c366387 100644 --- a/helm-fd.el +++ b/helm-fd.el @@ -83,7 +83,9 @@ (defun helm-fd-process () "Initialize fd process in an helm async source." (let* (process-connection-type - (cmd (append helm-fd-switches (split-string helm-pattern " "))) + (cmd (append helm-fd-switches + (or (and (fboundp #'split-string-shell-command) (split-string-shell-command helm-pattern)) + (split-string helm-pattern)))) (proc (apply #'start-process "fd" nil helm-fd-executable cmd)) (start-time (float-time)) (fd-version (replace-regexp-in-string