diff options
author | Alex Kreisher <akreisher18@gmail.com> | 2021-06-07 00:26:02 -0700 |
---|---|---|
committer | Alex Kreisher <akreisher18@gmail.com> | 2021-06-07 00:26:02 -0700 |
commit | b5e1d17d42e36ef035907d3d0cef50407e70a5b4 (patch) | |
tree | b7c211322641f9c1ce29d4675e63a96425206774 /helm-eshell.el | |
parent | b28516fbe63476057e49a1f0fd3696d25aaf63db (diff) |
Fix eshell completion when candidate is a directory
Diffstat (limited to 'helm-eshell.el')
-rw-r--r-- | helm-eshell.el | 4 |
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) |