mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08: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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue