diff --git a/modules/tools/eshell/autoload/eshell.el b/modules/tools/eshell/autoload/eshell.el index c65d95215..33d219037 100644 --- a/modules/tools/eshell/autoload/eshell.el +++ b/modules/tools/eshell/autoload/eshell.el @@ -38,9 +38,9 @@ module to be loaded." ;;;###autoload (defun +eshell/quit-or-delete-char (arg) (interactive "p") - (if (and (eolp) (looking-back eshell-prompt-regexp)) + (if (and (eolp) (looking-back eshell-prompt-regexp nil)) (eshell-life-is-too-much) - (delete-forward-char arg))) + (delete-char arg))) (defun +eshell--outside-prompt-p () (< (point) eshell-last-output-end))