mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 21:54:12 +01:00
Bang on the tests a bit more.
This commit is contained in:
@@ -2036,13 +2036,11 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
dactyl.log("All modules loaded", 3);
|
||||
|
||||
try {
|
||||
if (services.fuel)
|
||||
var args = services.fuel.storage.get("dactyl.commandlineArgs", null);
|
||||
if (!args) {
|
||||
let commandline = services.commandLineHandler.optionValue;
|
||||
if (commandline)
|
||||
args = dactyl.parseCommandLine(commandline);
|
||||
}
|
||||
var args = services.fuel && services.fuel.storage.get("dactyl.commandlineArgs", null)
|
||||
|| services.commandLineHandler.optionValue;
|
||||
if (isString(args))
|
||||
args = dactyl.parseCommandLine(args);
|
||||
|
||||
if (args) {
|
||||
dactyl.commandLineOptions.rcFile = args["+u"];
|
||||
dactyl.commandLineOptions.noPlugins = "++noplugin" in args;
|
||||
@@ -2112,7 +2110,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
}
|
||||
|
||||
if (dactyl.commandLineOptions.rcFile == "NONE" || dactyl.commandLineOptions.noPlugins)
|
||||
options["loadplugins"] = false;
|
||||
options["loadplugins"] = [];
|
||||
|
||||
if (options["loadplugins"])
|
||||
dactyl.loadPlugins();
|
||||
|
||||
@@ -133,9 +133,9 @@ var QuickMarks = Module("quickmarks", {
|
||||
quickmarks.remove(args[0]);
|
||||
},
|
||||
{
|
||||
argCount: "?",
|
||||
bang: true,
|
||||
completer: function (context) completion.quickmark(context),
|
||||
literal: 0
|
||||
completer: function (context) completion.quickmark(context)
|
||||
});
|
||||
|
||||
commands.add(["qma[rk]"],
|
||||
@@ -171,8 +171,8 @@ var QuickMarks = Module("quickmarks", {
|
||||
function (args) {
|
||||
quickmarks.list(args[0] || "");
|
||||
}, {
|
||||
argCount: "?",
|
||||
completer: function (context) completion.quickmark(context),
|
||||
literal: 0
|
||||
});
|
||||
},
|
||||
completion: function () {
|
||||
|
||||
Reference in New Issue
Block a user