Skip to content

Commit

Permalink
Autocomplete to next command on tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ckx committed Jul 16, 2015
1 parent 2f314de commit 542c5a1
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions GameConsole/GameConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,9 +1165,19 @@ void ReceiveCommandInput(char inputChar)
Log(" -> " + s);
}
}
else if (mashTab) {
cursorPosition += autoCollection.ElementAt(0).Length - input.Length;
input = autoCollection.ElementAt(0);
else if (mashTab)
{
if (input == autoCollection.ElementAt(0))
{
cursorPosition += autoCollection.ElementAt(1).Length - input.Length;
input = autoCollection.ElementAt(1);
}
else
{
cursorPosition += autoCollection.ElementAt(0).Length - input.Length;
input = autoCollection.ElementAt(0);
}

}
}
}
Expand Down

0 comments on commit 542c5a1

Please sign in to comment.