Can now click empty lines in Script Editor

(accounted for empty trailing lines)
This commit is contained in:
bigguy345 committed 2025-12-17 15:13:38 +02:00
1 parent 31ea784998
commit c062c1340b
2 files changed
+9 -3

No files matched your search

@@ -57,8 +57,8 @@ public class JavaTextContainer extends TextContainer {
lineHeight = ClientProxy.Font.height();
if (lineHeight == 0)
lineHeight = 12;
String[] split = text.split("\n");
String[] split = text.split("\\n", -1); // -1 preserves empty lines ""
int totalChars = 0;
for (String l : split) {
StringBuilder line = new StringBuilder();