diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index 0981bd4..d8dc767 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/dmenu.c @@ -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;