1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 14:55:47 +01:00

Formatting fixes.

This commit is contained in:
Doug Kearns
2009-11-14 21:57:32 +11:00
parent 607e65bf6f
commit 6cc43ad29a
11 changed files with 48 additions and 49 deletions

View File

@@ -777,17 +777,17 @@ const RangeFind = Class("RangeFind", {
get backward() this.finder.findBackwards,
iter: function (word) {
let saved = ["range", "lastRange", "lastString"].map(this.closure(function (s) [s, this[s]]))
let saved = ["range", "lastRange", "lastString"].map(this.closure(function (s) [s, this[s]]));
try {
this.range = this.ranges[0];
this.lastRange = null;
this.lastString = word
this.lastString = word;
var res;
while ((res = this.search(null, this.reverse, true)))
yield res;
}
finally {
saved.forEach(function ([k, v]) this[k] = v, this)
saved.forEach(function ([k, v]) this[k] = v, this);
}
},
@@ -804,7 +804,7 @@ const RangeFind = Class("RangeFind", {
if (!private_)
this.range.deselect();
if (word == "")
this.range.descroll()
this.range.descroll();
this.lastRange = this.startRange;
this.range = this.ranges.first;
}
@@ -936,7 +936,7 @@ const RangeFind = Class("RangeFind", {
cancel: function () {
this.purgeListeners();
this.range.deselect();
this.range.descroll()
this.range.descroll();
}
}, {
Range: Class("RangeFind.Range", {