diff options
Diffstat (limited to 'helm-eshell.el')
-rw-r--r-- | helm-eshell.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helm-eshell.el b/helm-eshell.el index bf823898..3c431b96 100644 --- a/helm-eshell.el +++ b/helm-eshell.el @@ -230,7 +230,8 @@ The function that call this should set `helm-ec-target' to thing at point." :resume 'noresume :input (and (stringp last) (helm-ff-set-pattern last))) - (and del-space (delete-char -1)))))))) + (and del-space (looking-back "\\s-" (1- (point))) + (delete-char -1)))))))) ;;;###autoload (defun helm-eshell-history () |