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
This commit is contained in:
sahlte
2024-12-01 11:21:28 -05:00
committed by GitHub
parent 7dddbcf793
commit 05e34351ea

View File

@ -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"))