summaryrefslogtreecommitdiff
path: root/helm-eshell.el
diff options
context:
space:
mode:
authorAlex Kreisher <akreisher18@gmail.com>2021-06-07 00:26:02 -0700
committerAlex Kreisher <akreisher18@gmail.com>2021-06-07 00:26:02 -0700
commitb5e1d17d42e36ef035907d3d0cef50407e70a5b4 (patch)
treeb7c211322641f9c1ce29d4675e63a96425206774 /helm-eshell.el
parentb28516fbe63476057e49a1f0fd3696d25aaf63db (diff)
Fix eshell completion when candidate is a directory
Diffstat (limited to 'helm-eshell.el')
-rw-r--r--helm-eshell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/helm-eshell.el b/helm-eshell.el
index 937ea049..bd4c8c10 100644
--- a/helm-eshell.el
+++ b/helm-eshell.el
@@ -163,7 +163,9 @@ at point."
(if (file-remote-p i) i
(expand-file-name
i (file-name-directory
- (directory-file-name entry)))))
+ (if (file-directory-p pcomplete-stub)
+ entry
+ (directory-file-name entry))))))
;; Compare them to avoid dups.
for file-entry-p = (and (stringp exp-entry)
(stringp file-cand)