Fix TAB different behavior between MCC and Vanilla

Vanilla sends everyting behing the cursor
MCC was only sending the beginning of last typed word
Now MCC will send everything behind the cursor.
This commit is contained in:
ORelio 2014-08-18 10:25:43 +02:00
parent f99efb5177
commit cb49ad7036

View file

@ -159,7 +159,7 @@ namespace MinecraftClient
if (tmp.Length > 0)
{
string word_tocomplete = tmp[tmp.Length - 1];
string word_autocomplete = autocomplete_engine.AutoComplete(word_tocomplete);
string word_autocomplete = autocomplete_engine.AutoComplete(buffer);
if (!String.IsNullOrEmpty(word_autocomplete) && word_autocomplete != word_tocomplete)
{
while (buffer.Length > 0 && buffer[buffer.Length - 1] != ' ') { RemoveOneChar(); }