commit: e02eabb868ed83a5130d0b81f8b438715d0238a5
parent: c3858adfb40ec7755caa418b4d93d28a2ee25c75
author: Chris Noxz <chris@noxz.tech>
date: Wed, 8 Feb 2023 19:49:29 +0100
Fix for calculating uneven lrpad
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dmenu.c b/dmenu.c
@@ -152,7 +152,7 @@ drawhighlights(struct item *item, int x, int y, int maxw)
highlight[1] = '\0';
drw_text(
drw,
- x + indent - (lrpad / 2),
+ x + indent - ((lrpad + 1) / 2),
y,
MIN(maxw - indent, TEXTW(highlight) - lrpad),
bh, 0, highlight, 0