aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/frontend.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index b2cb0cd8..7ba0de2e 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -257,6 +257,8 @@ class Frontend {
const definitions = await apiKanjiFind(searchText, optionsContext);
if (definitions.length === 0) { return null; }
+ textSource.setEndOffset(1);
+
return {definitions, type: 'kanji'};
}