mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Fixed search bar matches not updating when new text updates happen in main editor
This commit is contained in:
1 parent
cf1afc9fca
commit
abd639438e
1 file changed
+2
-1
@@ -86,7 +86,7 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
searchBar.setCallback(new SearchReplaceBar.SearchCallback() {
|
||||
@Override
|
||||
public String getText() {
|
||||
return text;
|
||||
return GuiScriptTextArea.this.text;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1767,6 +1767,7 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
|
||||
// Consider text changes user activity to pause caret blinking briefly
|
||||
selection.markActivity();
|
||||
searchBar.updateMatches();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user