1
0
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:
Martin Stubenschrott
2009-09-13 11:21:35 +02:00
parent ddfb66e3d8
commit cea762062a
2 changed files with 11 additions and 3 deletions

View File

@@ -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)
{