aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias2009-09-05 14:10:11 +0000
committertobias2009-09-05 14:10:11 +0000
commitcba18110df5cc25b7b4276d27b080b8582df1c0e (patch)
treef58714e35df0d238d4ae00d511b9f0beb2716fa6
parentf85968efdac22249de246783db8a008c823e12ae (diff)
downloadcwm-cba18110df5cc25b7b4276d27b080b8582df1c0e.tar.gz
style
ok oga
Diffstat (limited to '')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 477016e..4488020 100644
--- a/menu.c
+++ b/menu.c
@@ -243,14 +243,14 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
}
mc->noresult = 0;
- if (mc->changed && strlen(mc->searchstr) > 0) {
+ if (mc->changed && mc->searchstr[0] != '\0') {
(*mc->match)(menuq, resultq, mc->searchstr);
/* If menuq is empty, never show we've failed */
mc->noresult = TAILQ_EMPTY(resultq) && !TAILQ_EMPTY(menuq);
} else if (mc->changed)
TAILQ_INIT(resultq);
- if (!mc->list && mc->listing && !mc->changed) {
+ if (!mc->list && mc->listing && !mc->changed) {
TAILQ_INIT(resultq);
mc->listing = 0;
}