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

Delegate ChildAttributes to previous child when available #782

Merged
merged 2 commits into from Aug 9, 2017
Merged

Conversation

KronicDeth
Copy link
Owner

Fixes #779

Changelog

Enhancements

  • Always install IdeaVIM in the gradle sandbox because it got annoying having to reinstall it when the sandbox reset.

Bug Fixes

  • Delegate ChildAttributes to previous child when available: Block.getChildAttributes is used when Enter is pressed to determine the indentation and alignment. Using the default implementation, newlines in stabs look overly indented, but there is a constant, DELEGATE_TO_PREV_CHILD that can be used to just use the last child's indent as long as there is one, which appears to work well for stabs (do block bodies, etc).

It's annoying to have to install whenever the sandbox resets.
Fixes #770

Block.getChildAttributes is used when Enter is pressed to determine the
indentation and alignment.  Using the default implementation, newlines
in stabs look overly indented, but there is a constant,
`DELEGATE_TO_PREV_CHILD` that can be used to just use the last child's
indent as long as there is one, which appears to work well for stabs (do
block bodies, etc).
@KronicDeth KronicDeth added this to the v6.0.0 milestone Aug 8, 2017
@KronicDeth KronicDeth self-assigned this Aug 8, 2017
@KronicDeth KronicDeth merged commit 04f4803 into master Aug 9, 2017
@KronicDeth KronicDeth deleted the 779 branch August 9, 2017 01:45
KronicDeth added a commit that referenced this pull request Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant