Skip to content

Commit 8cc71ed

Browse files
committed
Fix a bug in composition rendering
FIX: Fix an issue when composing on the boundary of a decoration, where the text after the composition would get garbled. Closes codemirror/dev#1650
1 parent 8b6a1da commit 8cc71ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/buildtile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ export class TileUpdate {
407407
LOG_builder && console.log("Emit composition", posB, "to", next.toB, "over", posA, "to", next.toA)
408408
this.emit(posB, composition.range.fromB)
409409
this.builder.addComposition(composition, compositionContext!)
410+
this.text.skip(composition.range.toB - composition.range.fromB)
410411
this.emit(composition.range.toB, next.toB)
411412
} else {
412413
LOG_builder && console.log("Emit", posB, "to", next.toB, "over", posA, "to", next.toA)

0 commit comments

Comments
 (0)