We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16732d4 commit fc3db45Copy full SHA for fc3db45
1 file changed
packages/ansi/src/init.lua
@@ -136,9 +136,8 @@ function ansi.ProgressBar(label)
136
local pct = ratio and string.format("%3d%%", math.floor(ratio * 100)) or nil
137
local elapsed = formatElapsed(os.clock() - startTime)
138
139
- local key = (barStr or "") .. (pct or "") .. (info or "")
140
- if key == lastRendered then return end
141
- lastRendered = key
+ if pct == lastRendered then return end
+ lastRendered = pct
142
143
local line = ESC .. "2K\r" .. colors.gray .. " - " .. colors.reset .. label
144
if barStr then
0 commit comments