Update line.dart

Forgot to add that we have to merge the result with rest variable
pull/1782/head
wrth 1 year ago committed by GitHub
parent b58c0ecb1e
commit bb2096d480
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      lib/src/models/documents/nodes/line.dart

@ -390,6 +390,7 @@ base class Line extends QuillContainer<Leaf?> {
final remaining = len - local; final remaining = len - local;
if (remaining > 0 && nextLine != null) { if (remaining > 0 && nextLine != null) {
final rest = nextLine!.collectStyle(0, remaining); final rest = nextLine!.collectStyle(0, remaining);
result = result.mergeAll(rest);
handle(rest); handle(rest);
} }

Loading…
Cancel
Save