From 6eafdac362e7deace6a5c89dd9edc9e50003b374 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 9 May 2020 21:09:23 -0400 Subject: Fix setStartOffset not appending (#526) --- ext/fg/js/source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3