mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
fix nousance of always highlighting the first entry even when there is
no match (seen in the ctrl-a case) ok oga@
This commit is contained in:
parent
765479fc86
commit
9c587d9725
2
menu.c
2
menu.c
@ -356,7 +356,7 @@ menu_draw(struct screen_ctx *sc, struct menu_ctx *mc, struct menu_q *menuq,
|
|||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mc->hasprompt && n > 1)
|
if (mc->hasprompt && n > 1 && (mc->searchstr[0] != '\0'))
|
||||||
XFillRectangle(X_Dpy, sc->menuwin, sc->gc,
|
XFillRectangle(X_Dpy, sc->menuwin, sc->gc,
|
||||||
0, font_height(sc), mc->width, font_height(sc));
|
0, font_height(sc), mc->width, font_height(sc));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user