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

Closes issue #449.

This commit is contained in:
Kris Maglione
2011-10-07 03:17:52 -04:00
parent 7028b8b84e
commit 40a23fc7cd
3 changed files with 34 additions and 26 deletions

View File

@@ -942,12 +942,9 @@ var CommandLine = Module("commandline", {
if (/^\s*$/.test(str))
return;
this.store = this.store.filter(function (line) (line.value || line) != str);
try {
dactyl.trapErrors(function () {
this.store.push({ value: str, timestamp: Date.now()*1000, privateData: this.checkPrivate(str) });
}
catch (e) {
dactyl.reportError(e);
}
}, this);
this.store = this.store.slice(-options["history"]);
},
/**