1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 12:15:45 +01:00

Disable tab numbering in Gecko 1.9 for the moment. Deal with stale RangeFinds slipping through in corner case.

This commit is contained in:
Kris Maglione
2010-12-20 01:30:25 -05:00
parent c9520c0a59
commit b6c8d763fa
4 changed files with 12 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ const ConfigBase = Class(ModuleBase, {
{"}"}</>);
img = null;
};
if (util.haveGecko("2b"))
this.features.push("Gecko2");
},
styleHelp: function () {

View File

@@ -1284,7 +1284,9 @@ const Dactyl = Module("dactyl", {
styles.addSheet(true, "taboptions", "chrome://*",
classes.length ? classes.join(",") + "{ display: none; }" : "");
}
},
validator: function (opts) dactyl.has("Gecko2") ||
Option.validIf(!/[nN]/.test(opts), "Tab numbering not available in this " + config.host + " version")
}
].filter(function (group) !group.feature || dactyl.has(group.feature));

View File

@@ -77,7 +77,7 @@ const RangeFinder = Module("rangefinder", {
},
findAgain: function (reverse) {
if (!this.rangeFind)
if (!this.rangeFind || this.rangeFind.stale)
this.find(this.lastFindPattern);
else if (!this.rangeFind.find(null, reverse))
dactyl.echoerr("E486: Pattern not found: " + this.lastFindPattern);

View File

@@ -8,7 +8,11 @@
/** @scope modules */
let ValueError = Class("ValueError", Error);
let ValueError = Class("ValueError", Error, {
init: function (message) {
update(this, Error(message));
}
});
// do NOT create instances of this class yourself, use the helper method
// options.add() instead