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:
parent
8aff949449
commit
c30d0ab1b7
1 changed files with 2 additions and 1 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue