mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:58:00 +01:00
fix :undoall definition, the command doesn't accept a ! or count
This commit is contained in:
@@ -630,19 +630,17 @@ function Tabs() //{{{
|
|||||||
|
|
||||||
commands.add(["undoa[ll]"],
|
commands.add(["undoa[ll]"],
|
||||||
"Undo closing of all closed tabs",
|
"Undo closing of all closed tabs",
|
||||||
function (args, special, count)
|
function (args)
|
||||||
{
|
{
|
||||||
var ss = Components.classes["@mozilla.org/browser/sessionstore;1"]
|
let ss = Components.classes["@mozilla.org/browser/sessionstore;1"]
|
||||||
.getService(Components.interfaces.nsISessionStore);
|
.getService(Components.interfaces.nsISessionStore);
|
||||||
var undoItems = eval("(" + ss.getClosedTabData(window) + ")");
|
let undoItems = eval("(" + ss.getClosedTabData(window) + ")");
|
||||||
|
|
||||||
for (let i = 0; i < undoItems.length; i++)
|
for (let i = 0; i < undoItems.length; i++)
|
||||||
undoCloseTab(); // doesn't work with i as the index to undoCloseTab
|
undoCloseTab(); // doesn't work with i as the index to undoCloseTab
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{ argCount: "0" });
|
||||||
argCount: "0",
|
|
||||||
bang: true,
|
|
||||||
count: true
|
|
||||||
});
|
|
||||||
|
|
||||||
commands.add(["wqa[ll]", "wq", "xa[ll]"],
|
commands.add(["wqa[ll]", "wq", "xa[ll]"],
|
||||||
"Save the session and quit",
|
"Save the session and quit",
|
||||||
|
|||||||
Reference in New Issue
Block a user