1
0

get rid of cursor

This commit is contained in:
Deven Blake 2021-05-11 14:26:32 -04:00
parent bf7e480d1d
commit ef72d59495

View File

@ -115,7 +115,6 @@ drawitem(struct item *item, int x, int y, int w)
static void
drawmenu(void)
{
unsigned int curpos;
struct item *item;
int x = 0, y = 0, w;
@ -131,12 +130,6 @@ drawmenu(void)
drw_setscheme(drw, scheme[SchemeNorm]);
drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0);
curpos = TEXTW(text) - TEXTW(&text[cursor]);
if ((curpos += lrpad / 2 - 1) < w) {
drw_setscheme(drw, scheme[SchemeNorm]);
drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0);
}
if (matches) {
/* draw horizontal list */
x += inputw;