temporary workaround for weird highlighting

This commit is contained in:
speedie 2023-02-10 17:14:02 +01:00
parent 1487d57f17
commit 7e46fc7bb8

View file

@ -318,6 +318,7 @@ drawitem(struct item *item, int x, int y, int w)
int fg = 7;
int bg = 0;
int bgfg = 0;
int ib = 0;
if (item == sel) {
memcpy(scm, scheme[SchemeItemSel], sizeof(scm));
@ -344,8 +345,10 @@ drawitem(struct item *item, int x, int y, int w)
#else
drw_text(drw, x, y, rw + lp, bh, lp, buffer, 0, True);
#endif
drawhighlights(item, x, y, rw + lp);
x += rw + lp;
lp = 0; /* no l padding, we only want it once */
ib = 1;
char *ep = item->text + rd + 1;
@ -397,7 +400,7 @@ drawitem(struct item *item, int x, int y, int w)
int r = drw_text(drw, x, y, w, bh, lp, buffer, 0, True);
#endif
drawhighlights(item, x, y, w);
if (!ib) drawhighlights(item, x, y, w);
return r;
}