Skip to content

Commit

Permalink
Fix resetConsoleColor not working on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Rothes committed Sep 20, 2024
1 parent c2fd40d commit 03b0ff6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void format(LogEvent event, StringBuilder toAppendTo) {
ConfigManager configManager = plugin.getConfigManager();
if (configManager != null && configManager.resetConsoleColor) {
for (int i = toAppendTo.length() - 1; i >= 0; i--) {
if (toAppendTo.charAt(i) == '\r') {
if (toAppendTo.charAt(i) == '\n') {
toAppendTo.insert(i, "\u001b[0m");
}
}
Expand Down

0 comments on commit 03b0ff6

Please sign in to comment.