mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/eval: ensure final newline after repl input #2056
Fix an issue where the final line of send-to-repl input (via gr) isn't consistently processed.
This commit is contained in:
@ -124,7 +124,8 @@ immediately after."
|
|||||||
(delete-region (point-min) (point)))
|
(delete-region (point-min) (point)))
|
||||||
(indent-rigidly (point) (point-max)
|
(indent-rigidly (point) (point-max)
|
||||||
(- (skip-chars-forward " \t")))
|
(- (skip-chars-forward " \t")))
|
||||||
(string-trim-right (buffer-string)))))
|
(concat (string-trim-right (buffer-string))
|
||||||
|
"\n"))))
|
||||||
(with-selected-window (get-buffer-window buffer)
|
(with-selected-window (get-buffer-window buffer)
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(dolist (line (split-string selection "\n"))
|
(dolist (line (split-string selection "\n"))
|
||||||
|
Reference in New Issue
Block a user