From 2de4045b2d047d080a9eede41c6c123f687770f0 Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Sat, 16 Jul 2022 02:19:08 +0800 Subject: [PATCH] Fix hint rendering issue, Release 1.2.1 --- build.gradle.kts | 2 +- src/main/java/chaos/unity/nenggao/FileReportBuilder.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4e44bb1..f8dc45b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { } group = "chaos.unity.nenggao" -version = "1.2.0" +version = "1.2.1" repositories { mavenCentral() diff --git a/src/main/java/chaos/unity/nenggao/FileReportBuilder.java b/src/main/java/chaos/unity/nenggao/FileReportBuilder.java index 5c79ff4..e77fe82 100644 --- a/src/main/java/chaos/unity/nenggao/FileReportBuilder.java +++ b/src/main/java/chaos/unity/nenggao/FileReportBuilder.java @@ -279,6 +279,7 @@ public void print(final @NotNull PrintStream printStream) { writeLineNumber(printStream, -1, maxNumbersOfDigit, true); writeMultiLineLabel(printStream, -1, occupiedMultiLineLabels, null, characterSet.verticalBar); + printStream.append(new String(new char[spaceLen + offset]).replace('\0', ' ')); printStream.append(new String(new char[mostLastPosition - insertedLen + 1]).replace('\0', ' ')); boolean resetHint = writeColor(printStream, Attribute.BRIGHT_BLUE_TEXT()); printStream.append("!hint: ");