Skip to content

Commit b7c487a

Browse files
committed
[fix #780] ensure buffer connection is in nrepl-connection-list on time
1 parent 2a1ac0a commit b7c487a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nrepl-client.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ within Emacs. Return the newly created client connection process."
535535
nrepl-repl-buffer (when replp client-buf)
536536
nrepl-on-connection-buffer proc-buffer-name))
537537

538+
(nrepl-make-connection-default client-buf)
539+
538540
;; Everything is set. We are ready to send requests.
539541
(nrepl-request:clone (nrepl--new-tooling-session-handler client-proc))
540542
(nrepl-request:clone (nrepl--new-session-handler client-proc))
@@ -553,7 +555,6 @@ If REPLP is non-nil, also initialize it as a REPL buffer."
553555
(setq nrepl-versions versions)))
554556
(when replp
555557
(cider-repl-init conn-buffer))
556-
(nrepl-make-connection-default conn-buffer)
557558
(cider--check-required-nrepl-ops)
558559
(cider--check-middleware-compatibility)))
559560

0 commit comments

Comments
 (0)