mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-28 07:55:57 +00:00
Fix buffered leading spaces in terminal search (#1217)
This commit is contained in:
1 parent
f7c9aed256
commit
a27cf8e810
1 file changed
+1
-5
@@ -193,7 +193,7 @@ public class GuiMEMonitorable extends AEBaseGui
|
||||
@Override
|
||||
public void onTextChange(final String oldText) {
|
||||
final String text = getText();
|
||||
repo.setSearchString(text);
|
||||
repo.setSearchString(text.trim());
|
||||
repo.updateView();
|
||||
setScrollBar();
|
||||
}
|
||||
@@ -944,10 +944,6 @@ public class GuiMEMonitorable extends AEBaseGui
|
||||
return;
|
||||
}
|
||||
|
||||
if (character == ' ' && searchField.getText().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
boolean skipHotbarCheck = searchField.isFocused()
|
||||
&& (AEConfig.instance.searchBoxFocusPriority == SearchBoxFocusPriority.ALWAYS
|
||||
|| (AEConfig.instance.searchBoxFocusPriority == SearchBoxFocusPriority.NO_AUTOSEARCH
|
||||
|
||||
Reference in new issue
Block a user