Skip to content

Commit fd7edae

Browse files
committed
Infer REPL type in cider-nrepl-send-* functions by default
This fixes the inspector not using the appropriate REPL connection for the current buffer.
1 parent fa93545 commit fd7edae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cider-client.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ REQUEST is a pair list of the form (\"op\" \"operation\" \"par1-name\"
187187
If CONNECTION is provided dispatch to that connection instead of
188188
the current connection. Return the id of the sent message.
189189
If TOOLING is truthy then the tooling session is used."
190-
(nrepl-send-request request callback (or connection (cider-current-repl 'any 'ensure)) tooling))
190+
(nrepl-send-request request callback (or connection (cider-current-repl nil 'ensure)) tooling))
191191

192192
(defun cider-nrepl-send-sync-request (request &optional connection
193193
abort-on-input callback)
@@ -199,15 +199,15 @@ at the first sign of user input, so as not to hang the
199199
interface.
200200
if CALLBACK is non-nil, it will additionally be called on all received messages."
201201
(nrepl-send-sync-request request
202-
(or connection (cider-current-repl 'any 'ensure))
202+
(or connection (cider-current-repl nil 'ensure))
203203
abort-on-input
204204
nil
205205
callback))
206206

207207
(defun cider-nrepl-send-unhandled-request (request &optional connection)
208208
"Send REQUEST to the nREPL CONNECTION and ignore any responses.
209209
Immediately mark the REQUEST as done. Return the id of the sent message."
210-
(let* ((conn (or connection (cider-current-repl 'any 'ensure)))
210+
(let* ((conn (or connection (cider-current-repl nil 'ensure)))
211211
(id (nrepl-send-request request #'ignore conn)))
212212
(with-current-buffer conn
213213
(nrepl--mark-id-completed id))

0 commit comments

Comments
 (0)