From 38ad2e1d9c4414d8af4821a81c43aa98255198d8 Mon Sep 17 00:00:00 2001 From: tobias Date: Sat, 5 Sep 2009 14:10:11 +0000 Subject: style ok oga --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'menu.c') 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; } -- cgit 1.4.1