mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 07:42:26 +01:00
Fix up/down history
This commit is contained in:
@@ -230,11 +230,11 @@ function CommandLine() //{{{
|
||||
}
|
||||
|
||||
let hist = this.store.get(this.index);
|
||||
hist = (hist.value || hist);
|
||||
|
||||
// user pressed DOWN when there is no newer history item
|
||||
if (hist == null)
|
||||
if (!hist)
|
||||
hist = this.original;
|
||||
else
|
||||
hist = (hist.value || hist);
|
||||
|
||||
if (!matchCurrent || hist.substr(0, this.original.length) == this.original)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user