Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daveyarwood opened this issue May 18, 2018 · 0 comments
Open

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

daveyarwood opened this issue May 18, 2018 · 0 comments

Comments

@daveyarwood
Copy link

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))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant