diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-05-09 21:09:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 21:09:23 -0400 |
commit | 6eafdac362e7deace6a5c89dd9edc9e50003b374 (patch) | |
tree | fb4b10b50de81fcb93752a0dac9d8e7c90c1fd0d /ext/fg/js | |
parent | bdbe680f5cbe612df73cc0532f098f7973dfcc65 (diff) |
Fix setStartOffset not appending (#526)
Diffstat (limited to 'ext/fg/js')
-rw-r--r-- | ext/fg/js/source.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index c9d70215..07006cc9 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -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; } |