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:
Henrik Lissner 2019-11-17 01:15:51 -05:00
parent 8aff949449
commit c30d0ab1b7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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