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

Remove Xulmus#Config#incrementURL.

This is now provided by the browser module.
This commit is contained in:
Doug Kearns
2009-11-18 01:11:12 +11:00
parent 9b20a59d2a
commit c5cfb12291

View File

@@ -169,23 +169,6 @@ const Config = Module("config", ConfigBase, {
}
}, {
// TODO: support 'nrformats'? -> probably not worth it --mst
incrementURL: function (count) {
let matches = buffer.URL.match(/(.*?)(\d+)(\D*)$/);
if (!matches)
return void liberator.beep();
let [, pre, number, post] = matches;
let newNumber = parseInt(number, 10) + count;
let newNumberStr = String(newNumber > 0 ? newNumber : 0);
if (number.match(/^0/)) { // add 0009<C-a> should become 0010
while (newNumberStr.length < number.length)
newNumberStr = "0" + newNumberStr;
}
liberator.open(pre + newNumberStr + post);
},
showServicePane: function (value) {
const key = "splitter.servicepane_splitter.was_collapsed";
gServicePane.open = value;