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: Block corruption when deleting block content using deleteLine command #134

Conversation

Maran1947
Copy link
Contributor

Resolves #43

Solution approach #43(comment): Implemented a custom method that is block-aware which deletes the block when running on single line within block.

@Maran1947
Copy link
Contributor Author

@heyman
I've recently made updates to the pull request and would be grateful if you could take a moment to review. Your feedback is always appreciated.

@heyman
Copy link
Owner

heyman commented Jan 25, 2024

Hi! Sorry for not having time to look at this yet.

Could you write a couple of tests? Look at *.spec.js files in tests/ for examples.

@Maran1947
Copy link
Contributor Author

I have implemented the tests. Can you please review it?

@heyman
Copy link
Owner

heyman commented Feb 7, 2024

I think this looks good! But perhaps we could move deleteLine and selectedLineBlocks into a separate delete-line.js file.

@Maran1947
Copy link
Contributor Author

Sure thing, I'll go ahead and make that change.

@Maran1947
Copy link
Contributor Author

Done! Moved deleteLine and selectedLineBlocks to delete-line.js.

@heyman heyman marked this pull request as ready for review February 7, 2024 11:52
@heyman heyman changed the title fix: cell corruption when deleting block contents fix: Block corruption when deleting block content using deleteLine command Feb 7, 2024
@heyman heyman merged commit 5eed314 into heyman:main Feb 7, 2024
1 check passed
@heyman
Copy link
Owner

heyman commented Feb 7, 2024

Great, thanks!

@Maran1947 Maran1947 deleted the bugfix/cell-corruption-when-deleting-block-contents branch February 9, 2024 06:13
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.

Cell corruption when deleting block contents
2 participants