diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2014-03-07 11:32:04 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2014-03-07 11:32:04 +0100 |
commit | 61a1c5117c4171d69f844314db53470afb091415 (patch) | |
tree | 231dedf2f2d784f87f74523b12e8382dd1276688 /helm-eshell.el | |
parent | 88c6afdcf524b8eea51a0854313facc2e77dc087 (diff) |
* helm-eshell.el (helm-source-esh): Display same thing as what will be inserted (#438).
Diffstat (limited to 'helm-eshell.el')
-rw-r--r-- | helm-eshell.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helm-eshell.el b/helm-eshell.el index 6d7d303b..220a4534 100644 --- a/helm-eshell.el +++ b/helm-eshell.el @@ -60,7 +60,11 @@ (lambda (candidates _sources) (cl-loop for i in (sort candidates 'helm-generic-sort-fn) collect - (cons (abbreviate-file-name i) i)))) + (cond ((string-match "\\`~/?" helm-ec-target) + (abbreviate-file-name i)) + ((string-match "\\`/" helm-ec-target) i) + (t + (file-relative-name i)))))) (action . helm-ec-insert)) "Helm source for Eshell completion.") |