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: error format of TextEditingDeltaInsertion #1004

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

asjqkkkk
Copy link
Contributor

To fix AppFlowy-IO/AppFlowy#7049

Before the fix:

2024-12-26.161528.mp4

After the fix:

2024-12-26.161415.mp4

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.17%. Comparing base (c68e5f6) to head (38774dd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1004   +/-   ##
=======================================
  Coverage   72.16%   72.17%           
=======================================
  Files         319      319           
  Lines       15246    15248    +2     
=======================================
+ Hits        11003    11005    +2     
  Misses       4243     4243           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 324 to 327
selection:
oldText.startsWith(_whitespace) ? selection << _len : selection,
composing:
oldText.startsWith(_whitespace) ? composing << _len : composing,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a test:

  1. insert a space into an empty line.
  2. delete the space.
  3. verify that the result is correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already added

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.

[Bug] press delete button twice at the first empty line of the document
2 participants