AppFlowy-IO / appflowy-editor

A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.
https://pub.dev/packages/appflowy_editor
Other
473 stars 201 forks source link

fix: use retain instead of insert/delete for same attr #937

Closed LucasXu0 closed 1 month ago

LucasXu0 commented 1 month ago

updating the same attribute should return a 'retain' operation instead of 'insert' and 'delete' operations.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.04%. Comparing base (bcd1208) to head (dd2916b). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
lib/src/core/document/text_delta.dart 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #937 +/- ## ======================================= Coverage 72.03% 72.04% ======================================= Files 318 318 Lines 15046 15054 +8 ======================================= + Hits 10838 10845 +7 - Misses 4208 4209 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.