diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-08-14 17:06:12 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2017-08-14 17:06:12 +0200 |
commit | 57b1a54570af211f42343705ba59c234bf2e08c6 (patch) | |
tree | 7f98021cc6c8e6ff6927614e0a0a388eea9feeb9 /helm-eshell.el | |
parent | 80dada6a077b29e2f05371b320ac4fcf7ab43b65 (diff) |
Fix again adding final space when needed (#1832)
* helm-eshell.el (helm-ec-insert): Do it.
Diffstat (limited to 'helm-eshell.el')
-rw-r--r-- | helm-eshell.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-eshell.el b/helm-eshell.el index 95ebaac0..ad98d8fb 100644 --- a/helm-eshell.el +++ b/helm-eshell.el @@ -122,7 +122,8 @@ The function that call this should set `helm-ec-target' to thing at point." (concat (and (string-match "\\`[.]/" helm-ec-target) "./") (comint-quote-filename (file-relative-name x)))))) - marked " "))))) + marked " ") + (unless (string-match "/\\'" (car (last marked))) " "))))) (defun helm-esh-get-candidates () "Get candidates for eshell completion using `pcomplete'." |