Skip to content

Commit

Permalink
fixbug: crush when using non-scroll output theme like ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
jinke18 committed Jul 24, 2024
1 parent 71ec32e commit 273c887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/private/utils/batchcmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 273c887

Please sign in to comment.