fixed hbar percentage position
This commit is contained in:
parent
6397f29d4f
commit
316b255a04
@ -88,7 +88,7 @@ local function hbar(args)
|
|||||||
|
|
||||||
-- update percentage
|
-- update percentage
|
||||||
if args.show_percent then
|
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))
|
e.window.write(util.sprintf("%3.0f%%", fraction * 100))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user