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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user