diff -r dafe9b7e68ba -r 870e2ded8a83 common/content/commandline.js
--- a/common/content/commandline.js Mon Oct 24 11:21:06 2011 -0400
+++ b/common/content/commandline.js Tue Oct 25 17:42:10 2011 -0400
@@ -945,7 +945,11 @@
dactyl.trapErrors(function () {
this.store.push({ value: str, timestamp: Date.now()*1000, privateData: this.checkPrivate(str) });
}, this);
- this.store = this.store.slice(-options["history"]);
+ let history = options["history"];
+ if (history > 0)
+ this.store = this.store.slice(-history);
+ else
+ this.store = [];
},
/**
* @property {function} Returns whether a data item should be
--
Kris Maglione
Haskell is faster than C++, more concise than Perl, more regular than
Python, more flexible than Ruby, more typeful than C#, more robust
than Java, and has absolutely nothing in common with PHP.
--Autrijus Tang