[dmenu][patch] fuzzyhighlight: don't move character 1 pixel backwards

This commit is contained in:
bakkeby 2020-04-05 18:01:50 +02:00
parent fcfde08faf
commit 0993a2931a

View File

@ -24,7 +24,7 @@ drawhighlights(struct item *item, int x, int y, int maxw)
highlight[1] = '\0'; highlight[1] = '\0';
drw_text( drw_text(
drw, drw,
x + indent - (lrpad / 2) - 1, x + indent - (lrpad / 2),
y, y,
MIN(maxw - indent, TEXTW(highlight) - lrpad), MIN(maxw - indent, TEXTW(highlight) - lrpad),
bh, 0, highlight, 0 bh, 0, highlight, 0