summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 2f10da30..21d00bbc 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -640,7 +640,7 @@ class Display {
if (source) {
result.prefix = sentence.text.substring(0, sentence.offset).trim();
- result.body = source.trim();
+ result.body = sentence.text.substring(sentence.offset, sentence.offset + source.length);
result.suffix = sentence.text.substring(sentence.offset + source.length).trim();
}