aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index fdb46acb..8393e58c 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -126,7 +126,7 @@ class Client {
showPopup(range, content) {
this.popup.showNextTo(range.getRect(), content);
- if (this.options.highlightText) {
+ if (this.options.selectMatchedText) {
range.select();
}
@@ -136,7 +136,7 @@ class Client {
hidePopup() {
this.popup.hide();
- if (this.options.highlightText && this.lastRange !== null) {
+ if (this.options.selectMatchedText && this.lastRange !== null) {
this.lastRange.deselect();
}