mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-14 16:50:58 +00:00
Fix infinite recursion in eshell/clear (Bug#31326)
* lisp/eshell/esh-mode.el (eshell/clear): Bind eshell-input-filter-functions to nil to prevent entries like eshell-smart-display-setup from causing infinite recursion.
This commit is contained in:
parent
c249e17324
commit
39489f782e
@ -884,8 +884,7 @@ If SCROLLBACK is non-nil, clear the scrollback contents."
|
||||
(interactive)
|
||||
(if scrollback
|
||||
(eshell/clear-scrollback)
|
||||
(let ((eshell-input-filter-functions
|
||||
(remq 'eshell-add-to-history eshell-input-filter-functions)))
|
||||
(let ((eshell-input-filter-functions nil))
|
||||
(insert (make-string (window-size) ?\n))
|
||||
(eshell-send-input))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user