fixed hbar percentage position

This commit is contained in:
Mikayla Fischler 2022-06-25 14:51:59 -04:00
parent 6397f29d4f
commit 316b255a04

View File

@ -88,7 +88,7 @@ local function hbar(args)
-- update percentage
if args.show_percent then
e.window.setCursorPos(bar_width + 1, math.max(1, math.ceil(e.frame.h / 2)))
e.window.setCursorPos(bar_width + 2, math.max(1, math.ceil(e.frame.h / 2)))
e.window.write(util.sprintf("%3.0f%%", fraction * 100))
end
end