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

fix: minor bugfix to ToggleLineCommentHandler. #522

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

andrewL-avlq
Copy link
Contributor

Fix removeLineComments() to ensure that lines are processed in order.

@andrewL-avlq andrewL-avlq changed the title Minor bugfix to ToggleLineCommentHandler. fix: minor bugfix to ToggleLineCommentHandler. Apr 27, 2023
@github-actions github-actions bot added the bug label Apr 27, 2023
@mickaelistria
Copy link
Contributor

Can you please rework the commit message to be more explicit about the actual bug this fixes?

As written, the removeLineComments() algorithm expects the commented
lines to be processed in order, otherwise the document can become
corrupted as the wrong characters get removed. This fix ensures that the
lines are processed in order.
@mickaelistria mickaelistria merged commit b3528a9 into eclipse:main Apr 27, 2023
@mickaelistria
Copy link
Contributor

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants