Skip to content

The last call to thread-unwind undoes surrounding indentation #27

Description

@daveyarwood

Given a form like this:

(deftest example-tests
  (testing "something"
    (is (= 1 1))
    (-> foo bar baz)
    (is (= 2 2))))

If I put my cursor on the ( to the left of the -> and do cruw (thread-unwind), I get this, which is good:

(deftest example-tests
  (testing "something"
    (is (= 1 1))
    (-> (bar foo) baz)
    (is (= 2 2))))

But when I unwind the last level of threading by running cruw again, I get this, which is not indented properly:

(deftest example-tests
  (testing "something"
  (is (= 1 1))
  (baz (bar foo))
  (is (= 2 2))))

I get the same result if I start with the (-> foo bar baz) version at the top of this post and I do crua (unwind-all):

(deftest example-tests
  (testing "something"
  (is (= 1 1))
  (baz (bar foo))
  (is (= 2 2))))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions