From c30d0ab1b76511a751c062b87d7fa50a51800caa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 Nov 2019 01:15:51 -0500 Subject: [PATCH] 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. --- modules/tools/eval/autoload/repl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tools/eval/autoload/repl.el b/modules/tools/eval/autoload/repl.el index a5e48b570..7db09a522 100644 --- a/modules/tools/eval/autoload/repl.el +++ b/modules/tools/eval/autoload/repl.el @@ -124,7 +124,8 @@ immediately after." (delete-region (point-min) (point))) (indent-rigidly (point) (point-max) (- (skip-chars-forward " \t"))) - (string-trim-right (buffer-string))))) + (concat (string-trim-right (buffer-string)) + "\n")))) (with-selected-window (get-buffer-window buffer) (with-current-buffer buffer (dolist (line (split-string selection "\n"))