diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-23 21:24:45 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-23 21:24:45 -0700 |
commit | 659bb87a59c2f53e8144998fe1d3067526a83897 (patch) | |
tree | f7f449c4cd26be0cab8317741379076faeea68be /ext/fg/js/client.js | |
parent | c8d0ef50046dde2e3214a242674dff3c6dbf2a45 (diff) |
Mostly working
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r-- | ext/fg/js/client.js | 4 |
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; |