summaryrefslogtreecommitdiff
path: root/helm-eshell.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-09 12:45:28 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-08-09 12:45:28 +0200
commit35149d27981f0d617ee84d05f7e91ced22b43302 (patch)
tree636b68934bd62728b6466ad1d1ce34ec665c35a6 /helm-eshell.el
parent6e512b61a2cc71c6dd9edd6c637bf44ccea75c67 (diff)
Fix eshell completion when called just after command (#1832)
* helm-eshell.el (helm-esh-pcomplete): Check for empty string as file-exists-p returns non-nil on such strings.
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 76cd04f2..db13c08d 100644
--- a/helm-eshell.el
+++ b/helm-eshell.el
@@ -246,7 +246,9 @@ The function that call this should set `helm-ec-target' to thing at point."
:buffer "*helm pcomplete*"
:keymap helm-esh-completion-map
:resume 'noresume
- :input (if (and (stringp last) (file-exists-p last))
+ :input (if (and (stringp last)
+ (not (string= last ""))
+ (file-exists-p last))
(expand-file-name last)
last))
(and del-space (looking-back "\\s-" (1- (point)))