mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
The modification loop advanced its cursor with node sizes read from the slice, which describes the content before the change. When one step replaces several sibling nodes the changeset emits a change per node, each carrying the whole slice, so the later changes walked past the end of the document and decoration building threw. Measure each decorated node in the document being decorated instead. Fixes OUTLINE-CLOUD-D19 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>