From cb49ad7036bb19f0699d62836c92b00e8c5933e8 Mon Sep 17 00:00:00 2001 From: ORelio Date: Mon, 18 Aug 2014 10:25:43 +0200 Subject: [PATCH] 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. --- MinecraftClient/ConsoleIO.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinecraftClient/ConsoleIO.cs b/MinecraftClient/ConsoleIO.cs index ac2ea481..f73514a5 100644 --- a/MinecraftClient/ConsoleIO.cs +++ b/MinecraftClient/ConsoleIO.cs @@ -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(); }