Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #1252] Fix breakage in cider-repl-clear-buffer
After running cider-repl-clear-buffer and then loading a file creating output (e.g. because it contains println statements) the output would appear in the wrong place, causing the prompt to disappear. The problem was in the function responsible for putting POINT in the right place before emitting evaluation results into the repl buffer. When the prompt was the first line in the buffer, cider-repl--end-of-line-before-input-start didn't move point at all. There's now a special case in place to handle this situation. I initially considered solving this problem by making sure that the prompt wasn't the first line in the buffer, after noticing that he banner was being deleted by cider-repl-clear-buffer. While I think the banner should be preserved by this function, the banner itself is optional so this was a non-solution.
- Loading branch information