1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 07:54:13 +01:00

Fix tab-completion again

This commit is contained in:
Kris Maglione
2009-01-09 14:02:36 -05:00
parent 2f2ea98a9c
commit 9618547d47
3 changed files with 15 additions and 13 deletions

View File

@@ -434,7 +434,7 @@ function CommandLine() //{{{
this.itemList.selectItem(idx);
},
ntab: 0,
tabs: [],
tab: function tab(reverse)
{
@@ -443,12 +443,13 @@ function CommandLine() //{{{
if (this.context.waitingForTab || this.wildIndex == -1)
this.complete(true, true);
this.ntab++;
this.tabs.push(reverse);
if (this.waiting)
return;
while (this.ntab--)
while (this.tabs.length)
{
reverse = this.tabs.pop();
switch (this.wildtype.replace(/.*:/, ""))
{
case "":