mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 22:27:58 +01:00
Fix some completion issues. Make async search suggestion completions somewhat more useable.
This commit is contained in:
@@ -1083,6 +1083,7 @@ var CommandLine = Module("commandline", {
|
||||
this.context.updateAsync = true;
|
||||
this.reset(show, tabPressed);
|
||||
this.wildIndex = 0;
|
||||
this._caret = this.caret;
|
||||
},
|
||||
|
||||
haveType: function haveType(type)
|
||||
@@ -1270,7 +1271,7 @@ var CommandLine = Module("commandline", {
|
||||
break;
|
||||
case "longest":
|
||||
if (this.items.length > 1) {
|
||||
if (this.substring && this.substring != this.completion)
|
||||
if (this.substring && this.substring.length > this.completion.length)
|
||||
this.completion = this.substring;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user