Commit 39489f78 authored by Jonathan Kyle Mitchell's avatar Jonathan Kyle Mitchell Committed by Noam Postavsky
Browse files

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.
parent c249e173
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment