Skip to content

Commit 2b089d7

Browse files
committed
Fix cider--nrepl-print-request-map for nil cider-print-fn
1 parent 3c046a9 commit 2b089d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cider-client.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ is included in the request if non-nil."
295295
(seq-mapcat #'identity)
296296
(apply #'nrepl-dict))))
297297
(map-merge 'list
298-
`(("nrepl.middleware.print/print" ,(cider--print-fn))
299-
("nrepl.middleware.print/stream?" "1"))
298+
`(("nrepl.middleware.print/stream?" "1"))
299+
(when cider-print-fn
300+
`(("nrepl.middleware.print/print" ,(cider--print-fn))))
300301
(when cider-print-quota
301302
`(("nrepl.middleware.print/quota" ,cider-print-quota)))
302303
(unless (nrepl-dict-empty-p print-options)

0 commit comments

Comments
 (0)