mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
f99efb5177
commit
cb49ad7036
1 changed files with 1 additions and 1 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue