Fix: tools/eshell: get rid of compile warnings in quit-or-delete-char

This commit is contained in:
Benjamin Andresen 2017-07-22 00:12:04 +02:00
parent 279cea5b08
commit ce50ddd563

View file

@ -38,9 +38,9 @@ module to be loaded."
;;;###autoload ;;;###autoload
(defun +eshell/quit-or-delete-char (arg) (defun +eshell/quit-or-delete-char (arg)
(interactive "p") (interactive "p")
(if (and (eolp) (looking-back eshell-prompt-regexp)) (if (and (eolp) (looking-back eshell-prompt-regexp nil))
(eshell-life-is-too-much) (eshell-life-is-too-much)
(delete-forward-char arg))) (delete-char arg)))
(defun +eshell--outside-prompt-p () (defun +eshell--outside-prompt-p ()
(< (point) eshell-last-output-end)) (< (point) eshell-last-output-end))