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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user