Skip to content

Commit

Permalink
right-margin -> print-right-margin
Browse files Browse the repository at this point in the history
  • Loading branch information
cichli committed Dec 12, 2015
1 parent 2dfe66e commit a8bf042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cider-client.el
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ SESSION and NS are used for the context of the evaluation.
RIGHT-MARGIN specifies the maximum column-width of the pretty-printed
result, and is included in the request if non-nil."
(append (list "pprint" "true")
(and right-margin (list "right-margin" right-margin))
(and right-margin (list "print-right-margin" right-margin))
(nrepl--eval-request input session ns)))

(defun cider-nrepl-request:pprint-eval (input callback &optional ns right-margin)
Expand Down Expand Up @@ -735,7 +735,7 @@ If CALLBACK is nil, use `cider-load-file-handler'."
(let* ((response (thread-first (list "op" "format-edn"
"session" (cider-current-session)
"edn" edn)
(append (and right-margin (list "right-margin" right-margin)))
(append (and right-margin (list "print-right-margin" right-margin)))
(cider-nrepl-send-sync-request)))
(err (nrepl-dict-get response "err")))
(when err
Expand Down

0 comments on commit a8bf042

Please sign in to comment.