summary refs log tree commit diff
diff options
context:
space:
mode:
authortobias <tobias>2009-09-05 14:10:11 +0000
committertobias <tobias>2009-09-05 14:10:11 +0000
commit38ad2e1d9c4414d8af4821a81c43aa98255198d8 (patch)
tree2429c1128efd63f7af711adbeeb4135bd16cf7e5
parent7295c511559f292d849cfe037747c8321fc615e6 (diff)
downloadcwm-38ad2e1d9c4414d8af4821a81c43aa98255198d8.tar.gz
cwm-38ad2e1d9c4414d8af4821a81c43aa98255198d8.tar.xz
cwm-38ad2e1d9c4414d8af4821a81c43aa98255198d8.zip
style
ok oga
-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;
 	}