aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2011-03-22 11:05:13 +0000
committerokan2011-03-22 11:05:13 +0000
commit2527daeefb04802c9bec454b58ad5094361a8f98 (patch)
treef584d861ab217b56b5377836cbc5acb7a3b517bd /menu.c
parent2281efbc8921cfb2db47bb9fbee3b8f7b12cd712 (diff)
downloadcwm-2527daeefb04802c9bec454b58ad5094361a8f98.tar.gz
fix nousance of always highlighting the first entry even when there is
no match (seen in the ctrl-a case) ok oga@
Diffstat (limited to 'menu.c')
-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));