summaryrefslogtreecommitdiff
path: root/eshell-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-07-19 09:55:20 +0800
committerJSDurand <mmemmew@gmail.com>2021-07-19 09:55:20 +0800
commit2e6f5935b6254577a02d7c82509171f4b7e1ce50 (patch)
tree69d9d70ae044ab0c78dc6266f2d75729ac8afe40 /eshell-conf.el
parent7a524be22a2e6c20d425884b19398676788e46e5 (diff)
fix: eshell-clear
* eshell-conf.el (eshell-clear): Now this just clears the screen and emits a prompt, without messingup with the command history.
Diffstat (limited to 'eshell-conf.el')
-rw-r--r--eshell-conf.el4
1 files 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)