summaryrefslogtreecommitdiff
path: root/helm-eshell.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-15 07:41:39 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-15 07:41:39 +0200
commit5e2ed571b516b503b2350a183c81f3c03a417ea4 (patch)
tree925d519f00bd1d283de700da07ab7b6de1b9d221 /helm-eshell.el
parent57b1a54570af211f42343705ba59c234bf2e08c6 (diff)
Fix error at insertion in eshell (#1832)
* helm-eshell.el (helm-ec-insert): Do it.
Diffstat (limited to 'helm-eshell.el')
-rw-r--r--helm-eshell.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/helm-eshell.el b/helm-eshell.el
index ad98d8fb..c01e3c04 100644
--- a/helm-eshell.el
+++ b/helm-eshell.el
@@ -123,7 +123,10 @@ The function that call this should set `helm-ec-target' to thing at point."
(comint-quote-filename
(file-relative-name x))))))
marked " ")
- (unless (string-match "/\\'" (car (last marked))) " ")))))
+ (or (helm-aand (car (last marked))
+ (string-match-p "/\\'" it)
+ "")
+ " ")))))
(defun helm-esh-get-candidates ()
"Get candidates for eshell completion using `pcomplete'."