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
(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))