This should fix tab complete scuff

This commit is contained in:
Brady 2019-10-11 17:59:12 -05:00
parent f0ae31f455
commit 8fa2dac261
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class MixinGuiChat {
if (event.completions.length == 0) {
this.pendingSuggestions = Suggestions.empty();
} else {
int offset = this.inputField.getCursorPosition();
int offset = this.inputField.getText().endsWith(" ") ? this.inputField.getCursorPosition() : 0;
List<Suggestion> suggestionList = Stream.of(event.completions)
.map(s -> new Suggestion(StringRange.between(offset, offset + s.length()), s))