Skip to content

Commit b2965d4

Browse files
committed
Don't emit REPL output after the prompt
1 parent dc80d87 commit b2965d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Fix value and safe property for `cider-allow-jack-in-without-project` variable.
2020
* `cider-ns-save-files-on-refresh` will now save any modified buffers visiting files on the classpath, rather than just in the current project.
2121
* `cider-expected-ns` no longer requires an absolute path as its argument, and now internally handles paths canonically and consistently.
22+
* Fixed a bug causing REPL output to be inserted after the prompt.
2223

2324
## 0.20.0 (2019-01-14)
2425

cider-repl.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,8 @@ If BOL is non-nil insert at the beginning of line. Run
681681
"Using BUFFER, emit STRING font-locked with FACE.
682682
If BOL is non-nil, emit at the beginning of the line."
683683
(with-current-buffer buffer
684-
(cider-repl--emit-output-at-pos buffer string face cider-repl-input-start-mark bol)))
684+
(let ((pos (cider-repl--end-of-output)))
685+
(cider-repl--emit-output-at-pos buffer string face pos bol))))
685686

686687
(defun cider-repl-emit-stdout (buffer string)
687688
"Using BUFFER, emit STRING as standard output."

0 commit comments

Comments
 (0)