From 316b255a04aa307ebc074d8c823306b817eebe08 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 25 Jun 2022 14:51:59 -0400 Subject: [PATCH] fixed hbar percentage position --- graphics/elements/indicators/hbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/elements/indicators/hbar.lua b/graphics/elements/indicators/hbar.lua index a769423..c886a63 100644 --- a/graphics/elements/indicators/hbar.lua +++ b/graphics/elements/indicators/hbar.lua @@ -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