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:
okan 2011-03-22 11:05:13 +00:00
parent d0a487aa3d
commit 482c4ce498

View File

@ -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));