improve command selection

This commit is contained in:
tglide
2023-08-18 13:28:25 +01:00
parent ec5ad21fb8
commit aa822fba8f
+3 -2
View File
@@ -106,8 +106,9 @@
}
}
$: {
options;
$: if (selected > options.length - 1) {
selected = options.length - 1;
} else if (selected < 0) {
selected = 0;
}