mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-08-02 15:22:44 +00:00
#1217 PCode window not in same position as AS window: fixed
This commit is contained in:
@@ -211,6 +211,7 @@ public class HighlightedTextWriter extends GraphTextWriter {
|
||||
}
|
||||
}
|
||||
appendToSb(str);
|
||||
fixNewLineCount(str);
|
||||
if (h != null) {
|
||||
h.len = sb.length() - newLineCount - h.startPos;
|
||||
}
|
||||
@@ -338,6 +339,14 @@ public class HighlightedTextWriter extends GraphTextWriter {
|
||||
sb.append(str);
|
||||
}
|
||||
|
||||
private void fixNewLineCount(String str) {
|
||||
for (int i = 0; i < str.length(); i++) {
|
||||
if (str.charAt(i) == '\r') {
|
||||
newLineCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void appendIndent() {
|
||||
for (int i = 0; i < indent; i++) {
|
||||
appendNoHilight(formatting.indentString);
|
||||
|
||||
Reference in New Issue
Block a user