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