branch: elpa/with-editor commit 73e1cdfc93fc23f3888e40a173c252778d0bb92c Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
with-editor-export-editor: For vterm call clear Re #101. --- with-editor.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/with-editor.el b/with-editor.el index cbe65d5..0df8b6d 100644 --- a/with-editor.el +++ b/with-editor.el @@ -722,7 +722,9 @@ This works in `shell-mode', `term-mode', `eshell-mode' and (vterm-send-return)) (when-let ((v (getenv "EMACS_SERVER_FILE"))) (vterm-send-string (format "export EMACS_SERVER_FILE=%S" v)) - (vterm-send-return))) + (vterm-send-return)) + (vterm-send-string "clear") + (vterm-send-return)) (error "Cannot use sleeping editor in this buffer"))) (t (error "Cannot export environment variables in this buffer")))