Skip to content

Commit 04f92e0

Browse files
committed
Ensure the contents of the REPL are fully visible on startup
Fixes #2600.
1 parent 0dea44b commit 04f92e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cider-repl.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ client process connection."
306306
((pred identity) (pop-to-buffer buffer)))
307307
(with-current-buffer buffer
308308
(cider-repl--insert-banner)
309+
(when-let ((window (get-buffer-window buffer t)))
310+
(with-selected-window window
311+
(recenter (- -1 scroll-margin))))
309312
(cider-repl-eval-init-code))
310313
buffer)
311314

0 commit comments

Comments
 (0)