summaryrefslogtreecommitdiff
path: root/helm-eshell.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2014-02-18 16:47:44 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2014-02-18 16:47:44 +0100
commit8e434d81297ac522e47115c7ed0f924137b5568c (patch)
treebb3c0100851a32abaacfeb4396b04d40d8fa477d /helm-eshell.el
parent50497b58ebd0b2fec7c4bca9c4b7b2605cd3f6d4 (diff)
* helm-eshell.el (helm-esh-get-candidates): Fix :/tmp/foo/ $ cd foo.
Diffstat (limited to 'helm-eshell.el')
-rw-r--r--helm-eshell.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/helm-eshell.el b/helm-eshell.el
index 17232410..6507dc0b 100644
--- a/helm-eshell.el
+++ b/helm-eshell.el
@@ -105,6 +105,8 @@ The function that call this should set `helm-ec-target' to thing at point."
;; Compare them to avoid dups.
for file-entry-p = (and (stringp exp-entry)
(stringp file-cand)
+ ;; Fix :/tmp/foo/ $ cd foo
+ (not (file-directory-p file-cand))
(file-equal-p exp-entry file-cand))
if (and file-cand (or (file-remote-p file-cand)
(file-exists-p file-cand))