branch: elpa/helm commit 882cd964d0ce73694b729b312eea9e0fbe5a4736 Author: Federico Raiti <federico.rait...@gmail.com> Commit: Federico Raiti <federico.rait...@gmail.com>
Check if split-string-shell-command is present before using it If it's not revert to split-string. --- helm-fd.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm-fd.el b/helm-fd.el index 54aa4b0bae..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-shell-command 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