temporary workaround for weird highlighting
This commit is contained in:
parent
1487d57f17
commit
7e46fc7bb8
7
spmenu.c
7
spmenu.c
|
@ -318,6 +318,7 @@ drawitem(struct item *item, int x, int y, int w)
|
||||||
int fg = 7;
|
int fg = 7;
|
||||||
int bg = 0;
|
int bg = 0;
|
||||||
int bgfg = 0;
|
int bgfg = 0;
|
||||||
|
int ib = 0;
|
||||||
|
|
||||||
if (item == sel) {
|
if (item == sel) {
|
||||||
memcpy(scm, scheme[SchemeItemSel], sizeof(scm));
|
memcpy(scm, scheme[SchemeItemSel], sizeof(scm));
|
||||||
|
@ -344,8 +345,10 @@ drawitem(struct item *item, int x, int y, int w)
|
||||||
#else
|
#else
|
||||||
drw_text(drw, x, y, rw + lp, bh, lp, buffer, 0, True);
|
drw_text(drw, x, y, rw + lp, bh, lp, buffer, 0, True);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
drawhighlights(item, x, y, rw + lp);
|
||||||
x += rw + lp;
|
x += rw + lp;
|
||||||
lp = 0; /* no l padding, we only want it once */
|
ib = 1;
|
||||||
|
|
||||||
char *ep = item->text + rd + 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);
|
int r = drw_text(drw, x, y, w, bh, lp, buffer, 0, True);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
drawhighlights(item, x, y, w);
|
if (!ib) drawhighlights(item, x, y, w);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue