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
d0a487aa3d
commit
482c4ce498
@ -356,7 +356,7 @@ menu_draw(struct screen_ctx *sc, struct menu_ctx *mc, struct menu_q *menuq,
|
||||
n++;
|
||||
}
|
||||
|
||||
if (mc->hasprompt && n > 1)
|
||||
if (mc->hasprompt && n > 1 && (mc->searchstr[0] != '\0'))
|
||||
XFillRectangle(X_Dpy, sc->menuwin, sc->gc,
|
||||
0, font_height(sc), mc->width, font_height(sc));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user