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: use infillBlock not infillBlock.trimEnd() #1099

Merged
merged 2 commits into from
Sep 19, 2023
Merged

fix: use infillBlock not infillBlock.trimEnd() #1099

merged 2 commits into from
Sep 19, 2023

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Sep 18, 2023

Follow up on #1063

Sorry was sick on Thursday and wasn't thinking straight 😅

This PR fixes my oversight in #1063.

The trim() logic should be added inside the replacement block, instead of trimming the whole infillBlock

Test plan

Test this change with the incomplete comment test case

Before

image

After.

image

Copy link
Member

@valerybugakov valerybugakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @abeatrix, did you have a chance to look into this comment? I'm happy with this change, but I wonder what you think about the proposed simplification.

@abeatrix
Copy link
Contributor Author

@valerybugakov Thanks for the review and for pointing me to the comments I overlooked! I've fixed the typo issue, and I'm going to work on adding the raw head proposal in a follow-up PR once i'm done with the caching issue since that has higher priority atm. Tysm!

@abeatrix abeatrix merged commit b180e43 into main Sep 19, 2023
10 checks passed
@abeatrix abeatrix deleted the bee/fix-trim branch September 19, 2023 11:50
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

Successfully merging this pull request may close these issues.

2 participants