mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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"))
|
||||
|
Reference in New Issue
Block a user