cursive icon indicating copy to clipboard operation
cursive copied to clipboard

cond-> gets over-indented on 3rd+ lines

Open cap10morgan opened this issue 2 years ago • 0 comments

IntelliJ 2022.3.3 w/ Cursive 1.12.8

Steps to reproduce:

  1. Paste the following code into Cursive:
(cond-> response
        (:schema response) (update :schema transform {:type :schema})
        true (update :description (fnil identity ""))
        true -remove-empty-keys)
  1. Select those lines and run Code -> Auto-Indent Lines.

Expected: Cursive would leave those lines alone as they are already correctly indented.

Observed: Cursive over-indents the 3rd+ lines like so:

(cond-> response
        (:schema response) (update :schema transform {:type :schema})
                           true (update :description (fnil identity ""))
                           true -remove-empty-keys)

cap10morgan avatar Apr 01 '23 17:04 cap10morgan