Skip to content

Commit f18cce0

Browse files
committed
Minor improvement to progress bar
1 parent bf8eb60 commit f18cce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ do
246246
local termLength = getTermLength()
247247
function progress(current, goal)
248248
-- defaults:
249-
for i=1,termLength do glob.io.write(' ') end
250-
for i=1,termLength do glob.io.write('\b') end
251249
local barLength = termLength - 34
252250
local smoothing = 100
253251
local maxfps = 10
@@ -278,6 +276,8 @@ do
278276
else glob.io.write('.') end
279277
end
280278
glob.io.write('] ')
279+
for i=1,termLength-barLength-4 do glob.io.write(' ') end
280+
for i=1,termLength-barLength-4 do glob.io.write('\b') end
281281
-- time stats
282282
local elapsed = timer:time().real
283283
local step = (elapsed-times[1]) / (current-indices[1])

0 commit comments

Comments
 (0)