1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-24 07:13:31 +01:00

Fix :runtime completion.

This commit is contained in:
Kris Maglione
2010-12-17 20:01:59 -05:00
parent 754d490a56
commit 8f4d26f9ac
11 changed files with 39 additions and 38 deletions

View File

@@ -268,7 +268,7 @@ const RangeFind = Class("RangeFind", {
this.matchCase = Boolean(matchCase);
this.regexp = Boolean(regexp);
this.ranges = this.makeFrameList(window.content);
this.ranges = this.makeFrameList(content);
this.reset();
@@ -295,7 +295,7 @@ const RangeFind = Class("RangeFind", {
get searchString() this.lastString,
get selectedRange() {
let selection = (buffer.focusedFrame || window.content).getSelection();
let selection = (buffer.focusedFrame || content).getSelection();
return (selection.rangeCount ? selection.getRangeAt(0) : this.ranges[0].range).cloneRange();
},
set selectedRange(range) {