Skip to content

Commit 27991cb

Browse files
committed
Use indent-according-to-mode' in cider-maybe-insert-multiline-comment'
`clojure-indent-line' was the only direct indent-function call in cider tied to a specific major mode. Replacing it with `indent-according-to-mode' dispatches via the active mode's `indent-line-function', so the call works identically in `clojure-mode' (the function happens to be `clojure-indent-line') and in `clojure-ts-mode' (where it's the tree-sitter-driven `clojure-ts-indent-line'), without cider having to know which mode is active.
1 parent b4a83d7 commit 27991cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lisp/cider-eval.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ RESULT will be preceded by COMMENT-PREFIX.
377377
CONTINUED-PREFIX is inserted for each additional line of output.
378378
COMMENT-POSTFIX is inserted after final text output."
379379
(unless (string= result "")
380-
(clojure-indent-line)
380+
(indent-according-to-mode)
381381
(let ((lines (split-string result "[\n]+" t))
382382
(beg (point))
383383
(col (current-indentation)))

0 commit comments

Comments
 (0)