1
0
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:
Kris Maglione
2011-02-18 22:25:36 -05:00
parent ce23dd079d
commit cb0a07ddd1
5 changed files with 22 additions and 14 deletions

View File

@@ -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;
}