aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r--ext/fg/js/client.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index 7e9a9896..303f959b 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -87,6 +87,8 @@ class Client {
return;
}
+ range.setLength(this.options.scanLength);
+
if (this.lastRange !== null && this.lastRange.equals(range)) {
return;
}
@@ -113,7 +115,7 @@ class Client {
this.popup.showNextTo(range, content);
if (this.options.highlightText) {
- this.range.select(length);
+ range.select(length);
}
this.lastRange = range;