Fix setStartOffset not appending (#526)

This commit is contained in:
toasted-nutbread 2020-05-09 21:09:23 -04:00 committed by GitHub
parent bdbe680f5c
commit 6eafdac362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ class TextSourceRange {
const state = TextSourceRange.seekBackward(this.range.startContainer, this.range.startOffset, length);
this.range.setStart(state.node, state.offset);
this.rangeStartOffset = this.range.startOffset;
this.content = state.content;
this.content = state.content + this.content;
return length - state.remainder;
}