Opening search bar now sets highlighted word as currentMatch

This commit is contained in:
bigguy345 committed 2025-12-20 20:30:04 +02:00
1 parent 7b800694db
commit 0124ad4fd4
2 files changed
+48 -1

No files matched your search

@@ -94,6 +94,16 @@ public class GuiScriptTextArea extends GuiNpcTextField {
return GuiScriptTextArea.this.highlightedWord;
}
@Override
public int getSelectionStart() {
return GuiScriptTextArea.this.selection.getStartSelection();
}
@Override
public int getSelectionEnd() {
return GuiScriptTextArea.this.selection.getEndSelection();
}
@Override
public void setText(String newText) {
GuiScriptTextArea.this.setText(newText);