diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-06-09 21:19:32 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-06-09 21:19:32 +0200 |
commit | 7006f05413a158eb8e2ac0e29b414c423901ccea (patch) | |
tree | d9833e86fd055517640e572cddb4f3ffe82ab9a1 /helm-files.el | |
parent | b5c9b072b07f74df9e657ac65cf1093b5dde37be (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.el | 5 |
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> |