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

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

[nongnu] elpa/helm 882cd964d0 2/3: Check if split-string-shell-command i


From: ELPA Syncer
Subject: [nongnu] elpa/helm 882cd964d0 2/3: Check if split-string-shell-command is present before using it
Date: Sun, 5 Mar 2023 00:59:46 -0500 (EST)

branch: elpa/helm
commit 882cd964d0ce73694b729b312eea9e0fbe5a4736
Author: Federico Raiti <federico.raiti42@gmail.com>
Commit: Federico Raiti <federico.raiti42@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



reply via email to

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