summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2011-03-22 11:05:13 +0000
committerokan <okan>2011-03-22 11:05:13 +0000
commit9c587d972584743333a17b54d4062692fc779a88 (patch)
treec730114dfbc61ac11c7bd1abf51b9eb7a1841326
parent765479fc86223de51cb46f5dbce1dfabb4bb8354 (diff)
downloadcwm-9c587d972584743333a17b54d4062692fc779a88.tar.gz
cwm-9c587d972584743333a17b54d4062692fc779a88.tar.xz
cwm-9c587d972584743333a17b54d4062692fc779a88.zip
fix nousance of always highlighting the first entry even when there is
no match (seen in the ctrl-a case)

ok oga@
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
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));