1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:48:00 +01:00

fix :undoall definition, the command doesn't accept a ! or count

This commit is contained in:
Doug Kearns
2008-10-21 14:50:51 +00:00
parent 3e2f97cee5
commit b58c04200f

View File

@@ -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",