diff options
| author | ruki <[email protected]> | 2025-10-30 22:55:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-30 22:55:05 +0800 |
| commit | 10273ea53ed499719d8a2884bd652243db7032a1 (patch) | |
| tree | a191e1c6371d5596f85a31508903b0a08acc1698 /xmake/modules/utils/progress.lua | |
| parent | aa46a3037fbd036e060fc86bfc886cc073d7e112 (diff) | |
fix singlerow progress
Diffstat (limited to 'xmake/modules/utils/progress.lua')
| -rw-r--r-- | xmake/modules/utils/progress.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
