mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 07:42:29 +01:00
Make the silly ':hi Bell display:none;' hack function again.
This commit is contained in:
@@ -1583,19 +1583,11 @@ const CommandLine = Module("commandline", {
|
||||
if (!arg)
|
||||
return "";
|
||||
|
||||
try {
|
||||
arg = dactyl.userEval(arg);
|
||||
}
|
||||
catch (e) {
|
||||
dactyl.echoerr(e);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (typeof arg === "object")
|
||||
arg = dactyl.userEval(arg);
|
||||
if (isObject(arg))
|
||||
arg = util.objectToString(arg, useColor);
|
||||
else
|
||||
arg = String(arg);
|
||||
|
||||
return arg;
|
||||
}
|
||||
}, {
|
||||
@@ -1620,9 +1612,7 @@ const CommandLine = Module("commandline", {
|
||||
commands.add([command.name],
|
||||
command.description,
|
||||
function (args) {
|
||||
let str = CommandLine.echoArgumentToString(args[0] || "", true);
|
||||
if (str != null)
|
||||
command.action(str);
|
||||
command.action(CommandLine.echoArgumentToString(args[0] || "", true));
|
||||
}, {
|
||||
completer: function (context) completion.javascript(context),
|
||||
literal: 0
|
||||
|
||||
Reference in New Issue
Block a user