mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 08:22:28 +01:00
Add a conditional clause because conditional clauses are awesome.
This commit is contained in:
@@ -1208,7 +1208,8 @@ var CommandLine = Module("commandline", {
|
||||
else if (!this.waiting) {
|
||||
let cursor = this.selected;
|
||||
if (cursor && cursor[0] == context) {
|
||||
if (cursor[1] >= context.items.length) {
|
||||
if (cursor[1] >= context.items.length
|
||||
|| this.completion != context.items[cursor[1]].result) {
|
||||
this.selected = null;
|
||||
this.itemList.select(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user