diff options
| author | jinke18 <[email protected]> | 2024-07-24 20:42:02 +0800 |
|---|---|---|
| committer | jinke18 <[email protected]> | 2024-07-24 20:42:02 +0800 |
| commit | 273c8874a71859d7f8bc2783ab1ed12e3dc98b2a (patch) | |
| tree | 02cd3e8d26c09246f8229bf31da42be8bf29bdea /xmake/modules/private/utils/batchcmds.lua | |
| parent | 71ec32ea6787c1c4b215ea40e1d5ab40c1c4eedc (diff) | |
fixbug: crush when using non-scroll output theme like ninja
Diffstat (limited to 'xmake/modules/private/utils/batchcmds.lua')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index 97f414c77..892e812a9 100644 --- a/xmake/modules/private/utils/batchcmds.lua +++ b/xmake/modules/private/utils/batchcmds.lua @@ -60,7 +60,7 @@ function _show(showtext, progress) local split = msg:split(sep, {plain = true, strict = true}) cprintf(table.concat(split, "...")) end - if math.floor(progress) == 100 then + if math.floor(progress:percent()) == 100 then print("") _g.showing_without_scroll = false else |
