mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-02 08:23:32 +02:00
Fix link search.
This commit is contained in:
@@ -82,7 +82,7 @@ var RangeFinder = Module("rangefinder", {
|
|||||||
if (this.rangeFind)
|
if (this.rangeFind)
|
||||||
this.rangeFind.cancel();
|
this.rangeFind.cancel();
|
||||||
this.rangeFind = RangeFind(this.window, matchCase, backward,
|
this.rangeFind = RangeFind(this.window, matchCase, backward,
|
||||||
linksOnly && this.options["hinttags"],
|
linksOnly && this.options.get("hinttags").matcher,
|
||||||
regexp);
|
regexp);
|
||||||
this.rangeFind.highlighted = highlighted;
|
this.rangeFind.highlighted = highlighted;
|
||||||
this.rangeFind.selections = selections;
|
this.rangeFind.selections = selections;
|
||||||
@@ -380,7 +380,7 @@ var RangeFind = Class("RangeFind", {
|
|||||||
|
|
||||||
findSubRanges: function findSubRanges(range) {
|
findSubRanges: function findSubRanges(range) {
|
||||||
let doc = range.startContainer.ownerDocument;
|
let doc = range.startContainer.ownerDocument;
|
||||||
for (let elem in util.evaluateXPath(this.elementPath, doc)) {
|
for (let elem in this.elementPath(doc)) {
|
||||||
let r = RangeFind.nodeRange(elem);
|
let r = RangeFind.nodeRange(elem);
|
||||||
if (RangeFind.contains(range, r))
|
if (RangeFind.contains(range, r))
|
||||||
yield r;
|
yield r;
|
||||||
|
|||||||
Reference in New Issue
Block a user