From 10273ea53ed499719d8a2884bd652243db7032a1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 30 Oct 2025 22:55:05 +0800 Subject: fix singlerow progress --- xmake/modules/utils/progress.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xmake/modules/utils/progress.lua') diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua index 223b7840a..6c07ff662 100644 --- a/xmake/modules/utils/progress.lua +++ b/xmake/modules/utils/progress.lua @@ -289,8 +289,10 @@ end function _show_progress_with_singlerow_refresh(progress, format, ...) local is_finished = math.floor(progress) == 100 local progress_prefix = "${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} " + local progress_msg = vformat(format, ...) + local progress_line = _strip_progress_line(vformat(progress_prefix, progress) .. progress_msg) tty.erase_line_to_start().cr() - cprintf(progress_prefix .. format, progress, ...) + cprintf(progress_line) if is_finished then print("") _g.refresh_mode = nil -- cgit v1.3.1