From 13015caa1484d66614c0dd5561e17b1356b31626 Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Mon, 23 Dec 2024 20:55:53 +0100 Subject: [PATCH] PromtLogger: Clean lines that contain a tab character Fix https://github.com/com-lihaoyi/mill/issues/4171 --- main/util/src/mill/util/PromptLogger.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/util/src/mill/util/PromptLogger.scala b/main/util/src/mill/util/PromptLogger.scala index c55e9dc73f0..12cbd91c79d 100644 --- a/main/util/src/mill/util/PromptLogger.scala +++ b/main/util/src/mill/util/PromptLogger.scala @@ -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 ) }