mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Fixed replacing in decompilers
This commit is contained in:
1 parent
5bec62789e
commit
ea282d240e
1 file changed
+4
@@ -123,6 +123,8 @@ public class SearchBox extends JFrame {
|
||||
}
|
||||
|
||||
public void replace() {
|
||||
if (!Main.decompiler.isEditable())
|
||||
return;
|
||||
String txt = Main.txtByteEditView.getText();
|
||||
int startPos = Main.txtByteEditView.getSelectionStart();
|
||||
Main.txtByteEditView.replaceSelection(txtReplace.getText());
|
||||
@@ -130,6 +132,8 @@ public class SearchBox extends JFrame {
|
||||
}
|
||||
|
||||
public void replaceAll() {
|
||||
if (!Main.decompiler.isEditable())
|
||||
return;
|
||||
String toFind = txtFind.getText();
|
||||
String toReplace = txtReplace.getText();
|
||||
String txt = Main.txtByteEditView.getText();
|
||||
|
||||
Reference in new issue
Block a user