1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:27:57 +01:00

Fix wim=""

This commit is contained in:
Kris Maglione
2008-12-04 12:11:04 -05:00
parent 667e1433ec
commit 449e75c0a9

View File

@@ -265,7 +265,9 @@ function CommandLine() //{{{
case this.RESET:
idx = null;
break;
default: idx = Math.max(0, Math.max(this.items.length - 1, idx));
default:
idx = Math.max(0, Math.min(this.items.length - 1, idx));
break;
}
this.itemList.selectItem(idx);
if (idx < 0 || idx >= this.items.length || idx == null)