1
0
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:
Kris Maglione
2010-11-20 16:03:21 -05:00
parent 6358a21cec
commit 0a3ec8c768
4 changed files with 15 additions and 30 deletions

View File

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