aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/source.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-09 21:09:23 -0400
committerGitHub <noreply@github.com>2020-05-09 21:09:23 -0400
commit6eafdac362e7deace6a5c89dd9edc9e50003b374 (patch)
treefb4b10b50de81fcb93752a0dac9d8e7c90c1fd0d /ext/fg/js/source.js
parentbdbe680f5cbe612df73cc0532f098f7973dfcc65 (diff)
Fix setStartOffset not appending (#526)
Diffstat (limited to 'ext/fg/js/source.js')
-rw-r--r--ext/fg/js/source.js2
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;
}