Skip to content

Commit bc184e8

Browse files
committed
Fix text slicing bug
1 parent 0d67ce6 commit bc184e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/matrix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class EventAbstractionLayer {
272272
'Algorithm returned insertion operation, but an insertion was not performed.'
273273
)
274274
}
275-
op.body = body.slice(op.offset, op.length)
275+
op.body = body.slice(op.offset, op.offset + op.length)
276276
delete op.offset
277277
delete op.length
278278
}

0 commit comments

Comments
 (0)