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