From 2e6f5935b6254577a02d7c82509171f4b7e1ce50 Mon Sep 17 00:00:00 2001
From: JSDurand <mmemmew@gmail.com>
Date: Mon, 19 Jul 2021 09:55:20 +0800
Subject: fix: eshell-clear

* eshell-conf.el (eshell-clear): Now this just clears the screen and
  emits a prompt, without messingup with the command history.
---
 eshell-conf.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eshell-conf.el b/eshell-conf.el
index 59a0150..d0fc491 100644
--- a/eshell-conf.el
+++ b/eshell-conf.el
@@ -47,8 +47,8 @@
 (defun eshell-clear ()
   (interactive)
   (delete-region eshell-last-output-end (point))
-  (insert "clear t")
-  (eshell-send-input))
+  (eshell/clear t)
+  (eshell-emit-prompt))
 
 ;;;###autoload
 (defun eshell/j (&rest args)
-- 
cgit v1.2.3-18-g5258