summaryrefslogtreecommitdiff
path: root/helm-files.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-06-09 21:19:32 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-06-09 21:19:32 +0200
commit7006f05413a158eb8e2ac0e29b414c423901ccea (patch)
treed9833e86fd055517640e572cddb4f3ffe82ab9a1 /helm-files.el
parentb5c9b072b07f74df9e657ac65cf1093b5dde37be (diff)
Use also eshell-quote-argument in the second loop.
* helm-files.el (helm-find-files-eshell-command-on-file-1): Do it.
Diffstat (limited to 'helm-files.el')
-rw-r--r--helm-files.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/helm-files.el b/helm-files.el
index 7c7f7804..d88c7f90 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -755,8 +755,9 @@ will not be loaded first time you use this."
(cl-loop for f in cand-list
for dir = (and (not (string-match ffap-url-regexp f))
(helm-basedir f))
- for file = (format "%s" (if (and dir (file-remote-p dir))
- (helm-basename f) f))
+ for file = (eshell-quote-argument
+ (format "%s" (if (and dir (file-remote-p dir))
+ (helm-basename f) f)))
for com = (if (string-match "'%s'\\|\"%s\"\\|%s" command)
;; [1] This allow to enter other args AFTER filename
;; i.e <command %s some_more_args>