Skip to content

Commit

Permalink
Set the max length to maxint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed May 7, 2023
1 parent fda47ae commit 5676e53
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -27,6 +27,7 @@ public AutoCompletingEditBox(Font font, int x, int y, int width, int height, Com
public AutoCompletingEditBox(Font font, int x, int y, int width, int height, @Nullable EditBox thisBox, Component message, SearchableType<T> type, Supplier<List<T>> entries) {

super(font, x, y, width, height, thisBox, message);
this.setMaxLength(Integer.MAX_VALUE);
this.formattingVisitor = new FormattingVisitor(type);
this.completionVisitor = new CompletionVisitor();
this.autoComplete = new AutoComplete<>(type, this, entries, x, y + 2 + height, width, font.lineHeight + 2);
Expand Down

0 comments on commit 5676e53

Please sign in to comment.