From 273c8874a71859d7f8bc2783ab1ed12e3dc98b2a Mon Sep 17 00:00:00 2001 From: jinke18 Date: Wed, 24 Jul 2024 20:42:02 +0800 Subject: [PATCH] fixbug: crush when using non-scroll output theme like ninja --- xmake/modules/private/utils/batchcmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index 97f414c7717..892e812a932 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