diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-04-19 20:38:02 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-04-19 20:48:59 +0200 |
commit | 4c492aff48a416655e2db5410c8003dc717d9ccf (patch) | |
tree | 445b17ab5095b14800f5e1485b865dc5984bd73d /helm-eshell.el | |
parent | b319312631e180d238f0597d889c63744d57fa71 (diff) |
Use the second arg of looking-back in several places (#985).
* helm-elisp.el: Do it.
* helm-eshell.el: Do it.
* helm-eval.el: Do it.
Diffstat (limited to 'helm-eshell.el')
-rw-r--r-- | helm-eshell.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-eshell.el b/helm-eshell.el index 3d85c3c8..7b164a0b 100644 --- a/helm-eshell.el +++ b/helm-eshell.el @@ -178,7 +178,7 @@ The function that call this should set `helm-ec-target' to thing at point." (args (catch 'eshell-incomplete (eshell-parse-arguments beg end))) (target - (or (and (looking-back " ") " ") + (or (and (looking-back " " 1) " ") (buffer-substring-no-properties (save-excursion (eshell-backward-argument 1) (point)) @@ -232,7 +232,7 @@ The function that call this should set `helm-ec-target' to thing at point." :resume 'noresume :input input)) (when (and flag-empty - (looking-back " ")) + (looking-back " " 1)) (delete-char -1))))) (provide 'helm-eshell) |