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

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

[nongnu] elpa/helm f846ff91a4 3/3: Merge pull request #2589 from fedraco


From: ELPA Syncer
Subject: [nongnu] elpa/helm f846ff91a4 3/3: Merge pull request #2589 from fedraco-gh/master
Date: Sun, 5 Mar 2023 00:59:47 -0500 (EST)

branch: elpa/helm
commit f846ff91a461718fc9b1c240e1ded771ade42808
Merge: e8957d1b38 882cd964d0
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: GitHub <noreply@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



reply via email to

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