diff options
author | okan | 2011-03-22 11:05:13 +0000 |
---|---|---|
committer | okan | 2011-03-22 11:05:13 +0000 |
commit | 2527daeefb04802c9bec454b58ad5094361a8f98 (patch) | |
tree | f584d861ab217b56b5377836cbc5acb7a3b517bd /menu.c | |
parent | 2281efbc8921cfb2db47bb9fbee3b8f7b12cd712 (diff) | |
download | cwm-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 '')
-rw-r--r-- | menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |