From 2527daeefb04802c9bec454b58ad5094361a8f98 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 22 Mar 2011 11:05:13 +0000 Subject: fix nousance of always highlighting the first entry even when there is no match (seen in the ctrl-a case) ok oga@ --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index 1ece020..acdac85 100644 --- a/menu.c +++ b/menu.c @@ -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)); -- cgit v1.2.3-2-gb3c3