aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-23 21:24:45 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-23 21:24:45 -0700
commit659bb87a59c2f53e8144998fe1d3067526a83897 (patch)
treef7f449c4cd26be0cab8317741379076faeea68be /ext/fg/js/client.js
parentc8d0ef50046dde2e3214a242674dff3c6dbf2a45 (diff)
Mostly working
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;