Skip to content

Commit 123e1b5

Browse files
committed
Merge pull request #790 from vitoshka/780
[fix #780] ensure buffer connection is in nrepl-connection-list on time
2 parents 291e84d + b7c487a commit 123e1b5

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
@@ -536,6 +536,8 @@ within Emacs. Return the newly created client connection process."
536536
nrepl-repl-buffer (when replp client-buf)
537537
nrepl-on-connection-buffer proc-buffer-name))
538538

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

0 commit comments

Comments
 (0)