-
Notifications
You must be signed in to change notification settings - Fork 81
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
move-line-up/down
command breaks JSX indentation
#150
Comments
OK Thanks. I'll take a look. In the meantime just cursor into the last row moved and it will re-indent the previous rows. |
@jgebhardt Looks like I'm indenting it correctly but on return Atom re-indents at https://github.com/atom/atom/blob/master/src/language-mode.coffee#L235 using the previous line's indent. I may have to monkey patch this method which I'd hoped to avoid. |
Incorrect scopes returned by atom. |
@jgebhardt Should now be fixed in 2.15.6 release. |
Repro steps
Using the following test file:
Select the first child of the enclosing
<div />
:Use the
editor:move-line-down
/editor:move-line-up
(cmd+ctrl+up/down) command to move the selection around. This breaks the indentation by setting each line to the first line's indent level.The text was updated successfully, but these errors were encountered: