Skip to content

Commit 53d7fc7

Browse files
authored
Merge pull request #2599 from simon-katz/stop-cursor-moving-when-initialising
Stop cursor moving when initialising the CIDER REPL
2 parents 62134b4 + 5915c65 commit 53d7fc7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Bug fixes
66

7+
* Stop cursor moving when initialising the CIDER REPL, when `cider-repl-pop-to-buffer-on-connect` is nil. This fixes a bug introduced by [commit e0aca78b](https://github.com/clojure-emacs/cider/commit/e0aca78ba56425e50ea895c5adc7c0331cee0b19).
8+
79
* [#2593](https://github.com/clojure-emacs/cider/issues/2593): The REPL's initial namespace is now set correctly if configured in another tool (e.g. Leiningen's `:init-ns`).
810

911
## 0.21.0 (2019-02-19)

cider-repl.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ client process connection."
304304
(with-current-buffer buffer
305305
(cider-repl--insert-banner)
306306
(cider-repl--insert-prompt cider-buffer-ns)
307-
(set-window-point (get-buffer-window) (point-max)))
307+
(when-let ((window (get-buffer-window)))
308+
(set-window-point window (point-max))))
308309
buffer)
309310

310311
(defun cider-repl--insert-banner ()

0 commit comments

Comments
 (0)