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

Rename with Parinfer eliminates whitespace unnecessarily #2544

Open
jeff303 opened this issue May 6, 2021 · 0 comments
Open

Rename with Parinfer eliminates whitespace unnecessarily #2544

jeff303 opened this issue May 6, 2021 · 0 comments

Comments

@jeff303
Copy link

jeff303 commented May 6, 2021

Not sure if exactly related to #2106. With Parinfer enabled, place cursor over the first c below, and initiate Rename refactor.

(let [a     1
      b-sym {:x 1}
      c     "foo"]
  [a b-sym c])

Without typing anything, immediately the whitespace is rewritten (so map vals do not line up anymore):

(let [a 1
      b-sym {:x 1}
      c "foo"]
  [a b-sym c])

I could understand this happening if renaming b-sym (since its length currently influences the spacing of all the vals), but just changing c to c-new (for example) shouldn't make this happen. The workaround is to temporarily disable structural editing when performing a Rename.

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