Skip to content

Commit

Permalink
PromptLogger: Clean lines that contain a tab character (#4173)
Browse files Browse the repository at this point in the history
Fix #4171
  • Loading branch information
lefou authored Jan 1, 2025
1 parent a4ee7f8 commit c1b3d34
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 c1b3d34

Please sign in to comment.