diff options
author | xander <xander@isxander.dev> | 2022-09-10 19:51:42 +0100 |
---|---|---|
committer | xander <xander@isxander.dev> | 2022-09-10 19:51:42 +0100 |
commit | 20132e61aaa18849e46c7a3f4e28ec163585dc0c (patch) | |
tree | 54ac8d2a8eb1db414fbc1917f574b4e99f27f3d7 /src/main/java/dev/isxander | |
parent | 5ae0da6bdb6f44948da80ae95c5ef1b02f477350 (diff) | |
download | YetAnotherConfigLib-20132e61aaa18849e46c7a3f4e28ec163585dc0c.tar.gz YetAnotherConfigLib-20132e61aaa18849e46c7a3f4e28ec163585dc0c.tar.bz2 YetAnotherConfigLib-20132e61aaa18849e46c7a3f4e28ec163585dc0c.zip |
trim search query + changelog (1.0.0)
Diffstat (limited to 'src/main/java/dev/isxander')
-rw-r--r-- | src/main/java/dev/isxander/yacl/gui/OptionListWidget.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<OptionListWidget.Entry> @Override public boolean isViewable() { - return viewableSupplier.get() && widget.matchesSearch(yaclScreen.searchFieldWidget.getText()); + return viewableSupplier.get() && widget.matchesSearch(yaclScreen.searchFieldWidget.getText().trim()); } @Override |