mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix: tools/eshell: get rid of compile warnings in quit-or-delete-char
This commit is contained in:
@ -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))
|
||||||
|
Reference in New Issue
Block a user