diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2009-09-05 14:10:12 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2009-09-05 14:10:12 +0000 |
commit | ceb5040710069a8cea4b53790f118ae17ccd95b2 (patch) | |
tree | b88d81e2b5839c7cfa813bb608db0388a001096b /app | |
parent | afff42d0dbf2c1d7528c42ccda634198638685df (diff) |
style
ok oga
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c index 477016ee0..4488020a3 100644 --- a/app/cwm/menu.c +++ b/app/cwm/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; } |