From 05e34351ea5abf4828a305a970d6555e1290cd8b Mon Sep 17 00:00:00 2001 From: sahlte <155857838+sahlte@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:21:28 -0500 Subject: [PATCH] fix(eval): double prompt when region sent to repl The +eval/send-region-to-repl command was adding an extra newline when sending regions to REPLs, causing double prompts to appear. This removes the extra newline for cleaner REPL interaction across all language modes. * modules/tools/eval/autoload/repl.el (+eval/send-region-to-repl): remove concatenation of newline after region --- modules/tools/eval/autoload/repl.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/tools/eval/autoload/repl.el b/modules/tools/eval/autoload/repl.el index fe95f93c8..449a22276 100644 --- a/modules/tools/eval/autoload/repl.el +++ b/modules/tools/eval/autoload/repl.el @@ -157,8 +157,7 @@ immediately after." (delete-region (point-min) (point))) (indent-rigidly (point) (point-max) (- (skip-chars-forward " \t"))) - (concat (string-trim-right (buffer-string)) - "\n")))) + (string-trim-right (buffer-string))))) (with-selected-window (get-buffer-window buffer) (with-current-buffer buffer (dolist (line (split-string selection "\n"))