mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
remove range and bang error messages from :undoall action as they're now
handled by the bang and count extraInfo properties
This commit is contained in:
@@ -608,17 +608,6 @@ liberator.Tabs = function () //{{{
|
|||||||
"Undo closing of all closed tabs",
|
"Undo closing of all closed tabs",
|
||||||
function (args, special, count)
|
function (args, special, count)
|
||||||
{
|
{
|
||||||
if (count > -1)
|
|
||||||
{
|
|
||||||
liberator.echoerr("E481: No range allowed");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (special)
|
|
||||||
{
|
|
||||||
liberator.echoerr("E477: No ! allowed");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var ss = Components.classes["@mozilla.org/browser/sessionstore;1"]
|
var ss = Components.classes["@mozilla.org/browser/sessionstore;1"]
|
||||||
.getService(Components.interfaces.nsISessionStore);
|
.getService(Components.interfaces.nsISessionStore);
|
||||||
var undoItems = eval("(" + ss.getClosedTabData(window) + ")");
|
var undoItems = eval("(" + ss.getClosedTabData(window) + ")");
|
||||||
@@ -633,10 +622,7 @@ liberator.Tabs = function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["wqa[ll]", "wq", "xa[ll]"],
|
liberator.commands.add(["wqa[ll]", "wq", "xa[ll]"],
|
||||||
"Save the session and quit",
|
"Save the session and quit",
|
||||||
function ()
|
function () { liberator.quit(true); },
|
||||||
{
|
|
||||||
liberator.quit(true);
|
|
||||||
},
|
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user