get rid of cursor
This commit is contained in:
parent
bf7e480d1d
commit
ef72d59495
@ -115,7 +115,6 @@ drawitem(struct item *item, int x, int y, int w)
|
|||||||
static void
|
static void
|
||||||
drawmenu(void)
|
drawmenu(void)
|
||||||
{
|
{
|
||||||
unsigned int curpos;
|
|
||||||
struct item *item;
|
struct item *item;
|
||||||
int x = 0, y = 0, w;
|
int x = 0, y = 0, w;
|
||||||
|
|
||||||
@ -131,12 +130,6 @@ drawmenu(void)
|
|||||||
drw_setscheme(drw, scheme[SchemeNorm]);
|
drw_setscheme(drw, scheme[SchemeNorm]);
|
||||||
drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0);
|
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) {
|
if (matches) {
|
||||||
/* draw horizontal list */
|
/* draw horizontal list */
|
||||||
x += inputw;
|
x += inputw;
|
||||||
|
Loading…
Reference in New Issue
Block a user