Skip to content

Commit 9f3a409

Browse files
committed
[Fix #1122] Run client initialization in new client buffer
1 parent b7fb01c commit 9f3a409

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nrepl-client.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,9 @@ process."
759759
nrepl-completed-requests (make-hash-table :test 'equal)))
760760

761761
(nrepl-make-connection-default client-buf)
762-
(nrepl--init-client-sessions client-proc)
763-
(nrepl--init-capabilities client-buf)
762+
(with-current-buffer client-buf
763+
(nrepl--init-client-sessions client-proc)
764+
(nrepl--init-capabilities client-buf))
764765

765766
(with-current-buffer client-buf
766767
(run-hooks 'nrepl-connected-hook))

0 commit comments

Comments
 (0)