From 20132e61aaa18849e46c7a3f4e28ec163585dc0c Mon Sep 17 00:00:00 2001 From: xander Date: Sat, 10 Sep 2022 19:51:42 +0100 Subject: trim search query + changelog (1.0.0) --- src/main/java/dev/isxander/yacl/gui/OptionListWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/dev/isxander/yacl') diff --git a/src/main/java/dev/isxander/yacl/gui/OptionListWidget.java b/src/main/java/dev/isxander/yacl/gui/OptionListWidget.java index 3afadf3..ca6fc5d 100644 --- a/src/main/java/dev/isxander/yacl/gui/OptionListWidget.java +++ b/src/main/java/dev/isxander/yacl/gui/OptionListWidget.java @@ -230,7 +230,7 @@ public class OptionListWidget extends ElementListWidget @Override public boolean isViewable() { - return viewableSupplier.get() && widget.matchesSearch(yaclScreen.searchFieldWidget.getText()); + return viewableSupplier.get() && widget.matchesSearch(yaclScreen.searchFieldWidget.getText().trim()); } @Override -- cgit