Skip to content

Commit ddf3f35

Browse files
vspinubbatsov
authored andcommitted
Add connection argument to cider-nrepl-sync-request:eval
1 parent 154dd39 commit ddf3f35

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cider-client.el

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -702,13 +702,12 @@ buffer, defaults to (cider-current-connection)."
702702
ns line column additional-params)
703703
(cider-spinner-start connection)))
704704

705-
(defun cider-nrepl-sync-request:eval (input &optional ns)
706-
"Send the INPUT to the nREPL server synchronously.
707-
If NS is non-nil, include it in the request."
708-
(nrepl-sync-request:eval
709-
input
710-
(cider-current-connection)
711-
ns))
705+
(defun cider-nrepl-sync-request:eval (input &optional connection ns)
706+
"Send the INPUT to the nREPL CONNECTION synchronously.
707+
If NS is non-nil, include it in the eval request."
708+
(nrepl-sync-request:eval input
709+
(or connection (cider-current-connection))
710+
ns))
712711

713712
(defcustom cider-pprint-fn 'pprint
714713
"Sets the function to use when pretty-printing evaluation results.

0 commit comments

Comments
 (0)