mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-15 13:23:42 -05:00
tools/eval: fix extra newlines in term-char-mode REPLs #1836
This commit is contained in:
@@ -33,10 +33,12 @@
|
|||||||
(puthash key buffer +eval-repl-buffers)
|
(puthash key buffer +eval-repl-buffers)
|
||||||
buffer)))
|
buffer)))
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(goto-char (if (and (derived-mode-p 'comint-mode)
|
(unless (or (derived-mode-p 'term-mode)
|
||||||
(cdr comint-last-prompt))
|
(eq (current-local-map) term-raw-map))
|
||||||
(cdr comint-last-prompt)
|
(goto-char (if (and (derived-mode-p 'comint-mode)
|
||||||
(point-max)))
|
(cdr comint-last-prompt))
|
||||||
|
(cdr comint-last-prompt)
|
||||||
|
(point-max))))
|
||||||
buffer)))
|
buffer)))
|
||||||
|
|
||||||
(defun +eval-open-repl (prompt-p &optional other-window-p)
|
(defun +eval-open-repl (prompt-p &optional other-window-p)
|
||||||
|
Reference in New Issue
Block a user