mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:48:00 +01:00
Fix :set!.
This commit is contained in:
@@ -978,7 +978,7 @@ var Options = Module("options", {
|
|||||||
}, {
|
}, {
|
||||||
}, {
|
}, {
|
||||||
commands: function initCommands(dactyl, modules, window) {
|
commands: function initCommands(dactyl, modules, window) {
|
||||||
const { commands, contexts, options } = modules;
|
const { commandline, commands, contexts, options } = modules;
|
||||||
|
|
||||||
let args = {
|
let args = {
|
||||||
getMode: function (args) findMode(args["-mode"]),
|
getMode: function (args) findMode(args["-mode"]),
|
||||||
@@ -1048,7 +1048,7 @@ var Options = Module("options", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (name == "all" && reset)
|
if (name == "all" && reset)
|
||||||
modules.commandline.input(_("pref.prompt.resetAll", config.host) + " ",
|
commandline.input(_("pref.prompt.resetAll", config.host) + " ",
|
||||||
function (resp) {
|
function (resp) {
|
||||||
if (resp == "yes")
|
if (resp == "yes")
|
||||||
for (let pref in values(prefs.getNames()))
|
for (let pref in values(prefs.getNames()))
|
||||||
@@ -1078,7 +1078,7 @@ var Options = Module("options", {
|
|||||||
prefs.set(name, value);
|
prefs.set(name, value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
modules.commandline.commandOutput(prefs.list(onlyNonDefault, name));
|
commandline.commandOutput(prefs.list(onlyNonDefault, name));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ var tests = {
|
|||||||
set: {
|
set: {
|
||||||
multiOutput: [
|
multiOutput: [
|
||||||
"vb?", "cpt?", "messages?", "titlestring?", "au?", "eht?",
|
"vb?", "cpt?", "messages?", "titlestring?", "au?", "eht?",
|
||||||
"cpt", "messages", "titlestring", "au", "eht"
|
"cpt", "messages", "titlestring", "au", "eht", "! "
|
||||||
],
|
],
|
||||||
noOutput: ["vb", "novb"],
|
noOutput: ["vb", "novb"],
|
||||||
completions: [
|
completions: [
|
||||||
|
|||||||
Reference in New Issue
Block a user