1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 18:37:58 +01:00

Fix 'history'=0.

This commit is contained in:
Kris Maglione
2011-10-25 17:50:19 -04:00
parent f3758c1e1d
commit 952f41fc15

View File

@@ -945,7 +945,7 @@ var CommandLine = Module("commandline", {
dactyl.trapErrors(function () {
this.store.push({ value: str, timestamp: Date.now()*1000, privateData: this.checkPrivate(str) });
}, this);
this.store = this.store.slice(-options["history"]);
this.store = this.store.slice(this.store.length - options["history"]);
},
/**
* @property {function} Returns whether a data item should be