diff options
-rw-r--r-- | lisp/eshell/esh-mode.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index 3df820d5956..9cc9d34eafd 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el @@ -877,9 +877,8 @@ If SCROLLBACK is non-nil, clear the scrollback contents." (interactive) (if scrollback (eshell/clear-scrollback) - (let ((number-newlines (count-lines (window-start) (point)))) - (insert (make-string number-newlines ?\n)) - (eshell-send-input)))) + (insert (make-string (window-size) ?\n)) + (eshell-send-input))) (defun eshell/clear-scrollback () "Clear the scrollback content of the eshell window." |