1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 12:17:59 +01:00

Respect -timespan when sanitizing command-line history.

This commit is contained in:
Doug Kearns
2009-09-06 03:20:57 +10:00
parent b750bb7ba1
commit 2d40fb6e28
2 changed files with 16 additions and 6 deletions

View File

@@ -161,8 +161,7 @@ function CommandLine() //{{{
{
// Not really the ideal place for this check.
if (this.mode == "command")
return (commands.get(str.replace("^[\s:]*", "").split(/[\s!]+/)[0]) || {})
.privateData;
return (commands.get(commands.parseCommand(str)[1]) || {}).privateData;
return false;
},
/**
@@ -170,7 +169,7 @@ function CommandLine() //{{{
*/
sanitize: function ()
{
// TODO: Respect privacy.item.timeSpan
// TODO: Respect privacy.item.timeSpan (options["sts"])
this.store.mutate("filter", function (line) !line.privateData);
},
/**