1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 21:45:47 +01:00

Add new :messclear command to clear the message history.

This commit is contained in:
Doug Kearns
2009-03-11 01:02:12 +11:00
parent 59cdf67f57
commit 13da8c4519
4 changed files with 19 additions and 0 deletions

View File

@@ -58,6 +58,11 @@ function CommandLine() //{{{
get length() this._messages.length,
clear: function clear()
{
this._messages = [];
},
add: function add(message)
{
if (!message)
@@ -975,6 +980,11 @@ function CommandLine() //{{{
},
{ argCount: "0" });
commands.add(["messc[lear]"],
"Clear the message history",
function () { messageHistory.clear(); },
{ argCount: "0" });
commands.add(["sil[ent]"],
"Run a command silently",
function (args)