Skip to content

Commit

Permalink
PromtLogger: Clean lines that contain a tab character
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Dec 23, 2024
1 parent bc8c063 commit 13015ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/util/src/mill/util/PromptLogger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private[mill] object PromptLogger {
// https://stackoverflow.com/questions/71452837/how-to-reduce-flicker-in-terminal-re-drawing
dest.write(
new String(buf, 0, end)
.replaceAll("(\r\n|\n)", AnsiNav.clearLine(0) + "$1")
.replaceAll("(\r\n|\n|\t)", AnsiNav.clearLine(0) + "$1")
.getBytes
)
}
Expand Down

0 comments on commit 13015ca

Please sign in to comment.