summaryrefslogtreecommitdiff
path: root/helm-eshell.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-12-03 06:19:35 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-12-03 06:19:35 +0100
commitd45860fb6985289ae812bb18513de24bae74ac41 (patch)
tree0fe34e6b134bb4197191b1802928eab242e8696b /helm-eshell.el
parentfb50f96aad7aae791cfe3c192035ad20ab062f11 (diff)
Remove last char only when it is a space (#1273).
* helm-eshell.el (helm-esh-pcomplete): Do it.
Diffstat (limited to 'helm-eshell.el')
-rw-r--r--helm-eshell.el3
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 ()